Skip to content

Commit

Permalink
Delete fiveArgumentPooler (#8597)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrbright authored and aweary committed Dec 20, 2016
1 parent ab19dd0 commit b106ca0
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 b106ca0

Please sign in to comment.