From b106ca0c8e5c1514b9fbfc69bd60c0c18ad47214 Mon Sep 17 00:00:00 2001 From: dfrownfelter Date: Mon, 19 Dec 2016 20:53:04 -0800 Subject: [PATCH] Delete fiveArgumentPooler (#8597) --- src/shared/utils/PooledClass.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/shared/utils/PooledClass.js b/src/shared/utils/PooledClass.js index 8b87fbeb8eb4e..406a3f1ef70e7 100644 --- a/src/shared/utils/PooledClass.js +++ b/src/shared/utils/PooledClass.js @@ -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( @@ -127,7 +116,6 @@ var PooledClass = { twoArgumentPooler: (twoArgumentPooler: Pooler), threeArgumentPooler: (threeArgumentPooler: Pooler), fourArgumentPooler: (fourArgumentPooler: Pooler), - fiveArgumentPooler: (fiveArgumentPooler: Pooler), }; module.exports = PooledClass;