Remove deprecated global $parserMemc and wfGetParserCacheStorage
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 31 May 2018 13:28:42 +0000 (14:28 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 31 May 2018 13:28:42 +0000 (14:28 +0100)
Deprecated since 1.30, no longer used in core, bundled components,
and WMF-deployed extensions.

Change-Id: I09715f94750f083712719ef599a2ea4260297681

.phpcs.xml
RELEASE-NOTES-1.32
docs/globals.txt
includes/GlobalFunctions.php
includes/Setup.php

index 14bb494..375630f 100644 (file)
@@ -61,7 +61,7 @@
        </rule>
        <rule ref="MediaWiki.NamingConventions.ValidGlobalName">
                <properties>
-                       <property name="ignoreList" type="array" value="$IP,$messageMemc,$parserMemc" />
+                       <property name="ignoreList" type="array" value="$IP,$messageMemc" />
                </properties>
        </rule>
        <rule ref="Generic.Files.LineLength">
index 13d15c2..46efbdf 100644 (file)
@@ -129,6 +129,8 @@ because of Phabricator reports.
 * The protected methods PHPSessionHandler::returnSuccess() and returnFailure(),
   only needed for PHP5 compatibility, have been removed. It now uses the boolean
   values `true` and `false` respectively.
+* The $parserMemc global and wfGetParserCacheStorage(), deprecated since 1.30,
+  were removed. Use the ParserCache class instead.
 
 === Deprecations in 1.32 ===
 * Use of a StartProfiler.php file is deprecated in favour of placing
index 5bdb31c..be887a6 100644 (file)
@@ -63,5 +63,5 @@ $wgParser
 $wgRequest
        WebRequest object, to get request data
 
-$wgMemc, $messageMemc, $parserMemc
+$wgMemc, $messageMemc
        Object caches
index 6f49a14..00e35b1 100644 (file)
@@ -3150,17 +3150,6 @@ function wfGetMessageCacheStorage() {
        return ObjectCache::getInstance( $wgMessageCacheType );
 }
 
-/**
- * Get the cache object used by the parser cache
- *
- * @deprecated since 1.30, use MediaWikiServices::getParserCache()->getCacheStorage()
- * @return BagOStuff
- */
-function wfGetParserCacheStorage() {
-       global $wgParserCacheType;
-       return ObjectCache::getInstance( $wgParserCacheType );
-}
-
 /**
  * Call hook functions defined in $wgHooks
  *
index f73e686..3cc52f8 100644 (file)
@@ -771,13 +771,6 @@ if ( $wgCommandLineMode ) {
 $wgMemc = wfGetMainCache();
 $messageMemc = wfGetMessageCacheStorage();
 
-/**
- * @deprecated since 1.30
- */
-$parserMemc = new DeprecatedGlobal( 'parserMemc', function () {
-       return MediaWikiServices::getInstance()->getParserCache()->getCacheStorage();
-}, '1.30' );
-
 wfDebugLog( 'caches',
        'cluster: ' . get_class( $wgMemc ) .
        ', WAN: ' . ( $wgMainWANCache === CACHE_NONE ? 'CACHE_NONE' : $wgMainWANCache ) .