]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove old-style debugging
authorAndrew Dolgov <fox@fakecake.org>
Sun, 7 Nov 2010 11:38:59 +0000 (14:38 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Sun, 7 Nov 2010 11:38:59 +0000 (14:38 +0300)
functions.js
prefs.js
prefs.php
tt-rss.css
tt-rss.js
tt-rss.php

index 8b4945edcef63fe2df9c1c354c2612d18fdcfa5a..b9096706a6c3a65249e23b9d22ce837b1a41cbe7 100644 (file)
@@ -15,9 +15,9 @@ Array.prototype.remove = function(s) {
 /* create console.log if it doesn't exist */
 
 if (!window.console) console = {};
-console.log = console.log || function(msg) { debug(msg); };
-console.warn = console.warn || function(msg) { debug(msg); };
-console.error = console.error || function(msg) { debug(msg); };
+console.log = console.log || function(msg) { };
+console.warn = console.warn || function(msg) { };
+console.error = console.error || function(msg) { };
 
 function exception_error(location, e, ext_info) {
        var msg = format_exception_error(location, e);
@@ -1356,28 +1356,6 @@ function filterCR(e, f)
        }
 }
 
-var debug_last_class = "even";
-
-function debug(msg) {
-
-       if (debug_last_class == "even") {
-               debug_last_class = "odd";
-       } else {
-               debug_last_class = "even";
-       }
-
-       var c = $('debug_output');
-       if (c && Element.visible(c)) {
-               while (c.lastChild != 'undefined' && c.childNodes.length > 100) {
-                       c.removeChild(c.lastChild);
-               }
-       
-               var ts = make_timestamp();
-               c.innerHTML = "<li class=\"" + debug_last_class + "\"><span class=\"debugTS\">[" + ts + "]</span> " + 
-                       msg + "</li>" + c.innerHTML;
-       }
-}
-
 function getInitParam(key) {
        return init_params[key];
 }
index 33887b15e864072820de250d7d06a6ae2cd33f8d..c2f9d65c06d37a1d6d3b9a3c0b1131762f679719 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -1150,11 +1150,6 @@ function init() {
 
        try {
        
-               if (getURLParam('debug')) {
-                       Element.show("debug_output");
-                       console.log('debug mode activated');
-               }
-
                loading_set_progress(30);
 
                var query = "?op=rpc&subop=sanityCheck";
@@ -1353,16 +1348,6 @@ function pref_hotkey_handler(e) {
 
                if (!hotkey_prefix) {
 
-                       if (keycode == 68 && shift_key) { // d
-                               if (!Element.visible("debug_output")) {
-                                       Element.show("debug_output");
-                                       console.log('debug mode activated');
-                               } else {
-                                       Element.hide("debug_output");
-                               }
-                               return;
-                       }
-       
                        if ((keycode == 191 || keychar == '?') && shift_key) { // ?
                                if (!Element.visible("hotkey_help_overlay")) {
                                        //Element.show("hotkey_help_overlay");
index c0aad8a68bfc4f674de2f6f3d2f49a196688bbfc..41608969880f5170b11c190a7b34075010cd7df3 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -83,8 +83,6 @@
 
 <img id="piggie" src="images/piggie.png" style="display : none" alt="piggie"/>
 
-<ul id="debug_output" style='display : none'><li>&nbsp;</li></ul>
-
 <div id="prefHeader">
        <div class="topLinks">
                <?php if (!SINGLE_USER_MODE) { ?>
 
 <div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div>
 <div id="infoBoxShadow"><div id="infoBox">BAH</div></div>
-
 <div id="cmdline" style="display : none"></div>
 
 <div id="errorBoxShadow" style="display : none">
index ba7bbe575b826f38beb90477e217cc7af733378a..7f798a53dfcff6f9019268a219950668f0466f42 100644 (file)
@@ -1095,27 +1095,6 @@ a.cdmToggleLink:hover {
        border-width : 0px;
 }
 
-#debug_output {
-       position : absolute;
-       width : 400px;
-       height : 200px;
-       right : 20px;
-       bottom : 20px;
-       z-index : 999;
-       background-color : white;
-       border : 1px solid #c0c0c0;
-       overflow : auto;
-       margin : 0px;
-       padding : 0px;
-       list-style-type : none;
-}
-
-#debug_output li {
-       margin : 0px;
-       padding : 0px;
-       font-size : 11px;
-}
-
 #dialog_overlay {
        left : 0;
        top : 0;
index 6dd53c8b556ece49eb177a463172daf79287dd8e..9aaa4c52c144c03a78ae25925b18b5acd615a557 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -272,11 +272,6 @@ function init() {
                if (!genericSanityCheck()) 
                        return;
 
-               if (getURLParam('debug')) {
-                       Element.show("debug_output");
-                       console.log('debug mode activated');
-               }
-
                var params = "&ua=" + param_escape(navigator.userAgent);
 
                loading_set_progress(30);
@@ -935,17 +930,6 @@ function hotkey_handler(e) {
 
                if (!hotkey_prefix) {
 
-                       if (keycode == 68 && shift_key) { // d
-                               if (!Element.visible("debug_output")) {
-                                       Element.show("debug_output");
-                                       console.log('debug mode activated');
-                               } else {
-                                       Element.hide("debug_output");
-                               }
-       
-                               return;
-                       }
-       
                        if ((keycode == 191 || keychar == '?') && shift_key) { // ?
                                if (!Element.visible("hotkey_help_overlay")) {
                                        //Element.show("hotkey_help_overlay");
index bf6855741acce1c6411fcef7c2e841a114840512..f41d422396d0a853e3d192132d14dbe7d3fa0694 100644 (file)
 </div>
 
 <div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div>
-
 <div id="dialog_overlay" style="display : none"> </div>
-
-<ul id="debug_output" style='display : none'><li>&nbsp;</li></ul>
-
 <div id="infoBoxShadow" style="display : none"><div id="infoBox">&nbsp;</div></div>
-
 <div id="cmdline" style="display : none"></div>
 <div id="auxDlg" style="display : none"></div>