Remove unused 'pool' param from WANObjectCache::newEmpty()
authorLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Mon, 11 Dec 2017 17:27:47 +0000 (18:27 +0100)
committerLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Mon, 11 Dec 2017 17:30:55 +0000 (18:30 +0100)
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

index 8f2c72a..ac28076 100644 (file)
@@ -225,8 +225,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface {
         */
        public static function newEmpty() {
                return new static( [
-                       'cache'   => new EmptyBagOStuff(),
-                       'pool'    => 'empty'
+                       'cache'   => new EmptyBagOStuff()
                ] );
        }