From 6dab908f30a0b75f039a62ebc4060325b10422a9 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Wed, 30 Mar 2016 07:07:21 +0000 Subject: [PATCH] Remove since MW 1.25 deprecated functions In class ApiBase the methods * getParamDescription() * getDescription() * getExamples() are deprecated since MediaWiki 1.25. This change requires MediaWiki 1.25+. Change-Id: Ice6b310b8dea3a223f45317aa803a743b5daa680 --- api/ApiLanguageSearch.php | 28 ---------------------------- api/ApiULSLocalization.php | 26 -------------------------- 2 files changed, 54 deletions(-) diff --git a/api/ApiLanguageSearch.php b/api/ApiLanguageSearch.php index d77aa260..7c30441e 100644 --- a/api/ApiLanguageSearch.php +++ b/api/ApiLanguageSearch.php @@ -45,34 +45,6 @@ class ApiLanguageSearch extends ApiBase { ); } - /** - * @deprecated since MediaWiki core 1.25 - */ - public function getParamDescription() { - return array( - 'search' => 'Search string', - 'typos' => 'Number of spelling mistakes allowed in the search string', - ); - } - - /** - * @deprecated since MediaWiki core 1.25 - */ - public function getDescription() { - return 'Search for language names in any script'; - } - - /** - * @deprecated since MediaWiki core 1.25 - */ - public function getExamples() { - return array( - 'api.php?action=languagesearch&search=Te', - 'api.php?action=languagesearch&search=ഫി', - 'api.php?action=languagesearch&search=ഫി&typos=1', - ); - } - /** * @see ApiBase::getExamplesMessages() */ diff --git a/api/ApiULSLocalization.php b/api/ApiULSLocalization.php index 8bcbe3e0..fe011e01 100644 --- a/api/ApiULSLocalization.php +++ b/api/ApiULSLocalization.php @@ -54,32 +54,6 @@ class ApiULSLocalization extends ApiBase { ); } - /** - * @deprecated since MediaWiki core 1.25 - */ - public function getParamDescription() { - return array( - 'language' => 'Language string', - ); - } - - /** - * @deprecated since MediaWiki core 1.25 - */ - public function getDescription() { - return 'Get the localization of ULS in given language'; - } - - /** - * @deprecated since MediaWiki core 1.25 - */ - public function getExamples() { - return array( - 'api.php?action=ulslocalization&language=ta', - 'api.php?action=ulslocalization&language=hi', - ); - } - /** * @see ApiBase::getExamplesMessages() */