summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-07 14:38:59 +0300
committerAndrew Dolgov <[email protected]>2010-11-07 14:38:59 +0300
commitf3f67c1b53d2d93486fc3c57253b8af4d5e7a0c7 (patch)
treec827d9cd0691bc843a4d15592c25fb1e1d4461b7
parent3fb63f75a29afe5b40436049b4e84271fe77c7de (diff)
remove old-style debugging
-rw-r--r--functions.js28
-rw-r--r--prefs.js15
-rw-r--r--prefs.php3
-rw-r--r--tt-rss.css21
-rw-r--r--tt-rss.js16
-rw-r--r--tt-rss.php5
6 files changed, 3 insertions, 85 deletions
diff --git a/functions.js b/functions.js
index 8b4945edc..b9096706a 100644
--- a/functions.js
+++ b/functions.js
@@ -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];
}
diff --git a/prefs.js b/prefs.js
index 33887b15e..c2f9d65c0 100644
--- 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");
diff --git a/prefs.php b/prefs.php
index c0aad8a68..416089698 100644
--- 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) { ?>
@@ -133,7 +131,6 @@
<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">
diff --git a/tt-rss.css b/tt-rss.css
index ba7bbe575..7f798a53d 100644
--- a/tt-rss.css
+++ b/tt-rss.css
@@ -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;
diff --git a/tt-rss.js b/tt-rss.js
index 6dd53c8b5..9aaa4c52c 100644
--- 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");
diff --git a/tt-rss.php b/tt-rss.php
index bf6855741..f41d42239 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -85,13 +85,8 @@
</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>