Skip to content

Commit

Permalink
Delete fiveArgumentPooler (#8597)
Browse files Browse the repository at this point in the history
(cherry picked from commit b106ca0)
  • Loading branch information
davidrbright authored and gaearon committed Jan 6, 2017
1 parent b2ce412 commit d93ceda
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/shared/utils/PooledClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,6 @@ var fourArgumentPooler = function(a1, a2, a3, a4) {
}
};

var fiveArgumentPooler = function(a1, a2, a3, a4, a5) {
var Klass = this;
if (Klass.instancePool.length) {
var instance = Klass.instancePool.pop();
Klass.call(instance, a1, a2, a3, a4, a5);
return instance;
} else {
return new Klass(a1, a2, a3, a4, a5);
}
};

var standardReleaser = function(instance) {
var Klass = this;
invariant(
Expand Down Expand Up @@ -127,7 +116,6 @@ var PooledClass = {
twoArgumentPooler: (twoArgumentPooler: Pooler),
threeArgumentPooler: (threeArgumentPooler: Pooler),
fourArgumentPooler: (fourArgumentPooler: Pooler),
fiveArgumentPooler: (fiveArgumentPooler: Pooler),
};

module.exports = PooledClass;

0 comments on commit d93ceda

Please sign in to comment.