From 4f03894063c2fa7cbea2ecb208a708d8dcbc147b Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Mon, 7 Mar 2016 18:25:49 +0100 Subject: [PATCH] Remove deprecated Language::getLanguageNames() Was deprecated since 1.20. Uses in Gerrit extensions have been replaced. Change-Id: I2011d3e209915ddbbafdbdfff0279ea7cc5b9125 --- RELEASE-NOTES-1.27 | 1 + languages/Language.php | 14 -------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27 index b64bf4008d..df695bdeff 100644 --- a/RELEASE-NOTES-1.27 +++ b/RELEASE-NOTES-1.27 @@ -223,6 +223,7 @@ HHVM 3.1. * ApiQuery::setGeneratorContinue() was removed (deprecated since 1.24). * ApiMain::getModules() was removed (deprecated since 1.21). * ApiBase::getVersion() was removed (deprecated since 1.21). +* Language::getLanguageNames() was removed (deprecated since 1.20). === Languages updated in 1.27 === diff --git a/languages/Language.php b/languages/Language.php index 0bd227621f..e325e69c5f 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -802,20 +802,6 @@ class Language { return $this->getMessageFromDB( "tog-$tog" ); } - /** - * Get native language names, indexed by code. - * Only those defined in MediaWiki, no other data like CLDR. - * If $customisedOnly is true, only returns codes with a messages file - * - * @param bool $customisedOnly - * - * @return array - * @deprecated since 1.20, use fetchLanguageNames() - */ - public static function getLanguageNames( $customisedOnly = false ) { - return self::fetchLanguageNames( null, $customisedOnly ? 'mwfile' : 'mw' ); - } - /** * Get translated language names. This is done on best effort and * by default this is exactly the same as Language::getLanguageNames. -- 2.20.1