Remove unused Util.bindAll function
authorMatt Brubeck <mbrubeck@mozilla.com>
Tue, 07 Sep 2010 16:16:07 -0700
changeset 66640 8023fae48c0b85e7f2fb1da9c4af908082096f80
parent 66639 d81b19641ba3b6ce8a540ff7fd45e7b4bd69634b
child 66641 f45b88bd283a6918036c9485c05e30fb29d4d26a
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
Remove unused Util.bindAll function
mobile/chrome/content/Util.js
--- a/mobile/chrome/content/Util.js
+++ b/mobile/chrome/content/Util.js
@@ -47,23 +47,16 @@ Cu.import("resource://gre/modules/Geomet
 
 let Util = {
   bind: function bind(f, thisObj) {
     return function() {
       return f.apply(thisObj, arguments);
     };
   },
 
-  bindAll: function bindAll(instance) {
-    let bind = Util.bind;
-    for (let key in instance)
-      if (instance[key] instanceof Function)
-        instance[key] = bind(instance[key], instance);
-  },
-
   /** printf-like dump function */
   dumpf: function dumpf(str) {
     let args = arguments;
     let i = 1;
     dump(str.replace(/%s/g, function() {
       if (i >= args.length) {
         throw "dumps received too many placeholders and not enough arguments";
       }