cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: CB-5990 Delete unused findPlugins() function
Date Mon, 10 Feb 2014 20:48:50 GMT
Updated Branches:
  refs/heads/master f0a339fe7 -> c2206c403


CB-5990 Delete unused findPlugins() function


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/c2206c40
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/c2206c40
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/c2206c40

Branch: refs/heads/master
Commit: c2206c4031a0f56bc74a18801153af5171bf2a67
Parents: f0a339f
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Feb 7 23:37:07 2014 +0100
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Mon Feb 10 15:48:41 2014 -0500

----------------------------------------------------------------------
 src/util/plugins.js | 15 ---------------
 1 file changed, 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/c2206c40/src/util/plugins.js
----------------------------------------------------------------------
diff --git a/src/util/plugins.js b/src/util/plugins.js
index afc261d..db49884 100644
--- a/src/util/plugins.js
+++ b/src/util/plugins.js
@@ -82,21 +82,6 @@ module.exports = {
             require('../../plugman').emit('verbose', 'Plugin "' + plugin_id + '" fetched.');
             return plugin_dir;
         });
-    },
-
-    // List the directories in the path, ignoring any files, .svn, etc.
-    findPlugins:function(plugins_dir) {
-        var plugins = [],
-            stats;
-
-        if (fs.existsSync(plugins_dir)) {
-            plugins = fs.readdirSync(plugins_dir).filter(function (fileName) {
-               stats = fs.statSync(path.join(plugins_dir, fileName));
-               return fileName != '.svn' && fileName != 'CVS' && stats.isDirectory();
-            });
-        }
-
-        return plugins;
     }
 };
 


Mime
View raw message