[Pkg-javascript-commits] [node-async] 149/480: The function `_indexOf` is never used

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:21 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-async.

commit ca88b7e52fca14962a3835d1927989d8f3bae476
Author: Sergi Mansilla <sergi.mansilla at gmail.com>
Date:   Wed Feb 22 10:43:49 2012 +0100

    The function `_indexOf` is never used
---
 lib/async.js | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/lib/async.js b/lib/async.js
index 0bcd80d..2169827 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -64,18 +64,6 @@
         return keys;
     };
 
-    var _indexOf = function (arr, item) {
-        if (arr.indexOf) {
-            return arr.indexOf(item);
-        }
-        for (var i = 0; i < arr.length; i += 1) {
-            if (arr[i] === item) {
-                return i;
-            }
-        }
-        return -1;
-    };
-
     //// exported async module functions ////
 
     //// nextTick implementation with browser-compatible fallback ////

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git



More information about the Pkg-javascript-commits mailing list