Skip to content

Commit

Permalink
Remove unused baseArity.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Feb 17, 2016
1 parent 4f702e2 commit 6e2fb92
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions fp/_baseConvert.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ function baseConvert(util, name, func, options) {

var aryMethodKeys = keys(mapping.aryMethod);

var baseArity = function(func, n) {
return n == 2
? function(a, b) { return func.apply(undefined, arguments); }
: function(a) { return func.apply(undefined, arguments); };
};

var baseAry = function(func, n) {
return n == 2
? function(a, b) { return func(a, b); }
Expand Down Expand Up @@ -113,7 +107,9 @@ function baseConvert(util, name, func, options) {

var iterateeAry = function(func, n) {
return overArg(func, function(func) {
return typeof func == 'function' ? baseAry(func, n) : func;
return typeof func == 'function'
? baseAry(func, n)
: func;
});
};

Expand Down

0 comments on commit 6e2fb92

Please sign in to comment.