Remove ApiMain::getModules() and ApiQuery::getModules()
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Sat, 2 Jan 2016 22:31:21 +0000 (23:31 +0100)
committerFlorian <florian.schmidt.stargatewissen@gmail.com>
Sat, 2 Jan 2016 23:19:40 +0000 (00:19 +0100)
No usages anymore in any code hosted on wikimedia git.

Change-Id: I16d1afad211f00b9138219bcf62e5903513169be

RELEASE-NOTES-1.27
includes/api/ApiMain.php
includes/api/ApiQuery.php

index c98db50..91f2d72 100644 (file)
@@ -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 ===
 
index 89ff19a..ef9f901 100644 (file)
@@ -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' )
         *
index 902bca7..d12a68f 100644 (file)
@@ -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