@samitouri / QOS-React / commits / b106ca0c8e

Delete fiveArgumentPooler (#8597)

dfrownfelter committed Dec 19, 2016 at 20:53 UTC b106ca0c8e5c1514b9fbfc69bd60c0c18ad47214
1 file changed -12
src/shared/utils/PooledClass.js
-12
@@ -65,17 +65,6 @@ var fourArgumentPooler = function(a1, a2, a3, a4) {
65 }
66 };
67
68 -var fiveArgumentPooler = function(a1, a2, a3, a4, a5) {
69 - var Klass = this;
70 - if (Klass.instancePool.length) {
71 - var instance = Klass.instancePool.pop();
72 - Klass.call(instance, a1, a2, a3, a4, a5);
73 - return instance;
74 - } else {
75 - return new Klass(a1, a2, a3, a4, a5);
76 - }
77 -};
78 -
68 var standardReleaser = function(instance) {
69 var Klass = this;
70 invariant(
@@ -127,7 +116,6 @@ var PooledClass = {
116 twoArgumentPooler: (twoArgumentPooler: Pooler),
117 threeArgumentPooler: (threeArgumentPooler: Pooler),
118 fourArgumentPooler: (fourArgumentPooler: Pooler),
130 - fiveArgumentPooler: (fiveArgumentPooler: Pooler),
119 };
120
121 module.exports = PooledClass;