From 5c59e46a72e876d5d409d994328217b2164a2f1d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 12 Oct 2016 15:15:15 -0700 Subject: [PATCH] Remove deprecated ObjectCache::newAccelerator method Change-Id: I2be2afe3f2bba830aea4e985005adb72f0e45a82 --- includes/objectcache/ObjectCache.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/includes/objectcache/ObjectCache.php b/includes/objectcache/ObjectCache.php index 8160a75ba6..53a474b6e3 100644 --- a/includes/objectcache/ObjectCache.php +++ b/includes/objectcache/ObjectCache.php @@ -291,24 +291,6 @@ class ObjectCache { return $cache; } - /** - * @param array $params [optional] Array key 'fallback' for $fallback. - * @param int|string $fallback Fallback cache, e.g. (CACHE_NONE, "hash") (since 1.24) - * @return BagOStuff - * @deprecated since 1.27 - */ - public static function newAccelerator( $params = [], $fallback = null ) { - if ( $fallback === null ) { - if ( is_array( $params ) && isset( $params['fallback'] ) ) { - $fallback = $params['fallback']; - } elseif ( !is_array( $params ) ) { - $fallback = $params; - } - } - - return self::getLocalServerInstance( $fallback ); - } - /** * Create a new cache object of the specified type. * -- 2.20.1