Remove unused Util.bindAll function
authorMatt Brubeck <mbrubeck@mozilla.com>
Tue, 07 Sep 2010 16:16:07 -0700
changeset 1996 ee1337f0134d05dad59b9c3af5d87c3b936891cb
parent 1995 f06aeb49340688d3122f5e1c94af5d6281e1b953
child 1997 9e779e52a351c6f2cbcb1e20f6f726d8bb7c6340
push id1714
push userdougt@mozilla.com
push dateThu, 16 Sep 2010 02:04:21 +0000
Remove unused Util.bindAll function
chrome/content/Util.js
--- a/chrome/content/Util.js
+++ b/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";
       }