Bug 580878: removing some underutilized Utils functions: getMilliseconds, and testLogging

--HG--
extra : rebase_source : 28ff49903f395240a3aca3b3761c7638ee6d4b7d
This commit is contained in:
Michael Yoshitaka Erlewine 2010-07-22 15:42:29 -04:00
parent ff7ecda676
commit 8dd2ae9572

View File

@ -646,17 +646,6 @@ var Utils = {
return s;
},
// ----------
// Funtion: testLogging
// Prints some test messages with the various logging methods.
testLogging: function() {
this.log('beginning logging test');
this.error('this is an error');
this.trace('this is a trace');
this.log(1, null, {'foo': 'hello', 'bar': 2}, 'whatever');
this.log('ending logging test');
},
// ___ Misc
// ----------
@ -667,18 +656,9 @@ var Utils = {
return (event.which == 3);
if (event.button)
return (event.button == 2);
return false;
},
// ----------
// Function: getMilliseconds
// Returns the total milliseconds on the system clock right now.
getMilliseconds: function() {
var date = new Date();
return date.getTime();
},
// ----------
// Function: isDOMElement
// Returns true if the given object is a DOM element.