From: Florian Date: Sat, 2 Jan 2016 22:31:21 +0000 (+0100) Subject: Remove ApiMain::getModules() and ApiQuery::getModules() X-Git-Tag: 1.31.0-rc.0~8471 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=98af18f0014db5f903aa0485316889c19d46e562;p=lhc%2Fweb%2Fwiklou.git Remove ApiMain::getModules() and ApiQuery::getModules() No usages anymore in any code hosted on wikimedia git. Change-Id: I16d1afad211f00b9138219bcf62e5903513169be --- diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27 index c98db50d5a..91f2d728d1 100644 --- a/RELEASE-NOTES-1.27 +++ b/RELEASE-NOTES-1.27 @@ -144,6 +144,8 @@ production. ApiQueryBase::keyPartToTitle() all removed (deprecated since 1.24). * ApiQueryBase::checkRowCount() was removed (deprecated since 1.24). * ApiQueryBase::getDirectionDescription() was removed (deprecated since 1.25). +* ApiQuery::getModules() was removed (deprecated since 1.21). +* ApiMain::getModules() was removed (deprecated since 1.21). === Languages updated in 1.27 === diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 89ff19a196..ef9f901ec8 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -1788,15 +1788,6 @@ class ApiMain extends ApiBase { $this->getModuleManager()->addModule( $name, 'format', $class ); } - /** - * Get the array mapping module names to class names - * @deprecated since 1.21, Use getModuleManager()'s methods instead. - * @return array - */ - function getModules() { - return $this->getModuleManager()->getNamesWithClasses( 'action' ); - } - /** * Returns the list of supported formats in form ( 'format' => 'ClassName' ) * diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 902bca7c5f..d12a68fc98 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -184,17 +184,6 @@ class ApiQuery extends ApiBase { return $this->mPageSet; } - /** - * Get the array mapping module names to class names - * @deprecated since 1.21, use getModuleManager()'s methods instead - * @return array Array(modulename => classname) - */ - public function getModules() { - wfDeprecated( __METHOD__, '1.21' ); - - return $this->getModuleManager()->getNamesWithClasses(); - } - /** * Get the generators array mapping module names to class names * @deprecated since 1.21, list of generators is maintained by ApiPageSet