From b07ad81d60c1e9449ea3622263651d275fb2ef1e Mon Sep 17 00:00:00 2001 From: Petr Pchelko Date: Sat, 15 May 2021 12:51:26 -0700 Subject: [PATCH] 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 --- includes/StubUserLang.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/includes/StubUserLang.php b/includes/StubUserLang.php index 52448f0ee85..0fed1c45e0a 100644 --- a/includes/StubUserLang.php +++ b/includes/StubUserLang.php @@ -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 */