Remove deprecated wfMemcKey() function
Bug: T266502 Change-Id: I1e4b20cc30fa3ef4671d8b80e660b2ac3f469d80
This commit is contained in:
parent
fb19c8b235
commit
d1d952473c
3 changed files with 1 additions and 22 deletions
|
|
@ -309,6 +309,7 @@ because of Phabricator reports.
|
|||
unused outside of MediaWiki core.
|
||||
* Skin::subPageSubtitle() has been changed to private method. Callers should
|
||||
use Skin::prepareSubtitle().
|
||||
* wfForeignMemcKey() and wfMemcKey(), deprecated in 1.35, have been removed.
|
||||
* …
|
||||
|
||||
=== Deprecations in 1.36 ===
|
||||
|
|
|
|||
|
|
@ -2397,17 +2397,6 @@ function wfGetPrecompiledData( $name ) {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Make a cache key for the local wiki.
|
||||
*
|
||||
* @deprecated since 1.30 Call makeKey on a BagOStuff instance
|
||||
* @param string|int ...$args
|
||||
* @return string
|
||||
*/
|
||||
function wfMemcKey( ...$args ) {
|
||||
return ObjectCache::getLocalClusterInstance()->makeKey( ...$args );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an ASCII string identifying this wiki
|
||||
* This is used as a prefix in memcached keys
|
||||
|
|
|
|||
|
|
@ -683,17 +683,6 @@ class GlobalTest extends MediaWikiIntegrationTestCase {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::wfMemcKey
|
||||
*/
|
||||
public function testWfMemcKey() {
|
||||
$cache = ObjectCache::getLocalClusterInstance();
|
||||
$this->assertEquals(
|
||||
$cache->makeKey( 'foo', 123, 'bar' ),
|
||||
wfMemcKey( 'foo', 123, 'bar' )
|
||||
);
|
||||
}
|
||||
|
||||
public static function provideWfShellWikiCmdList() {
|
||||
global $wgPhpCli;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue