Remove StubUserLang::findVariantLink

Was hard-deprecated together with Language counterpart.
Was forgotten to be removed when the method was removed
from Language class. No need for release notes, StubUserLang
is an internal concept.

Change-Id: Iec233869143ed273642f444c39387c053a33bc9d
This commit is contained in:
Petr Pchelko 2021-05-15 12:51:26 -07:00
parent 31ce88620f
commit b07ad81d60

View file

@ -18,8 +18,6 @@
* @file
*/
use MediaWiki\MediaWikiServices;
/**
* Stub object for the user language. Assigned to the $wgLang global.
*/
@ -29,29 +27,6 @@ class StubUserLang extends StubObject {
parent::__construct( 'wgLang' );
}
/**
* Call Language::findVariantLink after unstubbing $wgLang.
*
* This method is implemented with a full signature rather than relying on
* __call so that the pass-by-reference signature of the proxied method is
* honored.
* @deprecated since 1.35
*
* @param string &$link The name of the link
* @param Title &$nt The title object of the link
* @param bool $ignoreOtherCond To disable other conditions when
* we need to transclude a template or update a category's link
*/
public function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) {
global $wgLang;
wfDeprecated( __METHOD__, '1.35' );
$this->_unstub( 'findVariantLink', 3 );
MediaWikiServices::getInstance()
->getLanguageConverterFactory()
->getLanguageConverter( $wgLang )
->findVariantLink( $link, $nt, $ignoreOtherCond );
}
/**
* @return Language
*/