Skip to content

Commit

Permalink
remove dead longest checking code
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 14, 2011
1 parent d782170 commit 5a0d88b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,6 @@ function Argv (args, cwd) {
return self;
};

function longestElement (a) {
var l = 0;
for (var i = 0; i < a.length; i++) {
if (a[l].length < a[i].length) {
l = i;
}
}

return a[l].length;
}

self.options = function (key, opt) {
if (typeof key === 'object') {
Object.keys(key).forEach(function (k) {
Expand Down Expand Up @@ -269,7 +258,6 @@ function Argv (args, cwd) {
});

return help.join('\n');

};

Object.defineProperty(self, 'argv', {
Expand Down

0 comments on commit 5a0d88b

Please sign in to comment.