From: Aaron Schulz Date: Wed, 12 Oct 2016 22:15:15 +0000 (-0700) Subject: Remove deprecated ObjectCache::newAccelerator method X-Git-Tag: 1.31.0-rc.0~5120^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=5c59e46a72e876d5d409d994328217b2164a2f1d;p=lhc%2Fweb%2Fwiklou.git Remove deprecated ObjectCache::newAccelerator method Change-Id: I2be2afe3f2bba830aea4e985005adb72f0e45a82 --- 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. *