From 5f5b79eea26110e8063dabb6b671cdf48ce82353 Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Mon, 11 Dec 2017 18:27:47 +0100 Subject: [PATCH] Remove unused 'pool' param from WANObjectCache::newEmpty() The 'pool' parameter was removed in commit 09a0a5e4f6 (change I5631eb1b13), retaining it in this helper method just confuses people who read the code. Change-Id: I7907a1fc4c613362d74e9045bc7dc41bbd9bf815 --- includes/libs/objectcache/WANObjectCache.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index 8f2c72a141..ac280762a4 100644 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -225,8 +225,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { */ public static function newEmpty() { return new static( [ - 'cache' => new EmptyBagOStuff(), - 'pool' => 'empty' + 'cache' => new EmptyBagOStuff() ] ); } -- 2.20.1