From f3f67c1b53d2d93486fc3c57253b8af4d5e7a0c7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 7 Nov 2010 14:38:59 +0300 Subject: remove old-style debugging --- functions.js | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) (limited to 'functions.js') 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 = "
  • [" + ts + "] " + - msg + "
  • " + c.innerHTML; - } -} - function getInitParam(key) { return init_params[key]; } -- cgit v1.2.3