Florianschmidtwelzow has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/262014

Change subject: Remove ApiMain::getModules() and ApiQuery::getModules()
......................................................................

Remove ApiMain::getModules() and ApiQuery::getModules()

No usages anymore in any code hosted on wikimedia git.

Change-Id: I16d1afad211f00b9138219bcf62e5903513169be
---
M RELEASE-NOTES-1.27
M includes/api/ApiMain.php
M includes/api/ApiQuery.php
3 files changed, 2 insertions(+), 20 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/14/262014/1

diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27
index 8be703e..17d527a 100644
--- a/RELEASE-NOTES-1.27
+++ b/RELEASE-NOTES-1.27
@@ -206,6 +206,8 @@
 * WikiPage::testPreSaveTransform() was removed (deprecated since 1.19).
 * LogPage::logName() was removed (deprecated since 1.19).
 * LogPage::logHeader() was removed (deprecated since 1.19).
+* ApiQuery::getModules() was removed (deprecated since 1.21).
+* ApiMain::getModules() was removed (deprecated since 1.21).
 
 == Compatibility ==
 
diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php
index 89ff19a..ef9f901 100644
--- a/includes/api/ApiMain.php
+++ b/includes/api/ApiMain.php
@@ -1789,15 +1789,6 @@
        }
 
        /**
-        * 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' )
         *
         * @since 1.18
diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php
index 902bca7..d12a68f 100644
--- a/includes/api/ApiQuery.php
+++ b/includes/api/ApiQuery.php
@@ -185,17 +185,6 @@
        }
 
        /**
-        * 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
         * @return array Array(modulename => classname)

-- 
To view, visit https://gerrit.wikimedia.org/r/262014
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I16d1afad211f00b9138219bcf62e5903513169be
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to