jenkins-bot has submitted this change and it was merged.

Change subject: Remove deprecated ObjectCache::newAccelerator method
......................................................................


Remove deprecated ObjectCache::newAccelerator method

Change-Id: I2be2afe3f2bba830aea4e985005adb72f0e45a82
---
M includes/objectcache/ObjectCache.php
1 file changed, 0 insertions(+), 18 deletions(-)

Approvals:
  Krinkle: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/objectcache/ObjectCache.php 
b/includes/objectcache/ObjectCache.php
index 8160a75..53a474b 100644
--- a/includes/objectcache/ObjectCache.php
+++ b/includes/objectcache/ObjectCache.php
@@ -292,24 +292,6 @@
        }
 
        /**
-        * @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.
         *
         * @since 1.26

-- 
To view, visit https://gerrit.wikimedia.org/r/315590
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2be2afe3f2bba830aea4e985005adb72f0e45a82
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org>
Gerrit-Reviewer: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to