From: Lucas Werkmeister Date: Mon, 11 Dec 2017 17:27:47 +0000 (+0100) Subject: Remove unused 'pool' param from WANObjectCache::newEmpty() X-Git-Tag: 1.31.0-rc.0~1229 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=5f5b79eea26110e8063dabb6b671cdf48ce82353;p=lhc%2Fweb%2Fwiklou.git 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 --- 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() ] ); }