Remove deprecated unused method `getModuleScripts()`
authorDerick Alangi <alangiderick@gmail.com>
Thu, 9 May 2019 22:25:53 +0000 (23:25 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Thu, 9 May 2019 22:33:53 +0000 (23:33 +0100)
Deprecated in 1.33 and no longer used. Removed from OutputPage and
from ParserOutput.

Usage
=====

https://codesearch.wmflabs.org/search/?q=%5CbgetModuleScripts%5Cb&i=nope&files=&repos=

Bug: T220656
Change-Id: Ifddea94504d0c749d3a77daf967d5fec95b50339

RELEASE-NOTES-1.34
includes/OutputPage.php
includes/parser/ParserOutput.php

index 5cb3dbe..ae20991 100644 (file)
@@ -143,6 +143,8 @@ because of Phabricator reports.
   1.28, have been removed.
 * PageArchive::getTextFromRow(), ::listAllPages(), and ::getLastRevisionText(),
   deprecated in 1.32, have been removed.
+* OutputPage::getModuleScripts(), ParserOutput::getModuleScripts(), deprecated
+  in 1.33, have been removed.
 * …
 
 === Deprecations in 1.34 ===
index 641f0b8..c45fce7 100644 (file)
@@ -548,15 +548,6 @@ class OutputPage extends ContextSource {
                $this->mModules = array_merge( $this->mModules, (array)$modules );
        }
 
-       /**
-        * @deprecated since 1.33 Use getModules() instead.
-        * @return array
-        */
-       public function getModuleScripts() {
-               wfDeprecated( __METHOD__, '1.33' );
-               return [];
-       }
-
        /**
         * Get the list of style-only modules to load on this page.
         *
index f80e6bf..40bcebd 100644 (file)
@@ -510,11 +510,6 @@ class ParserOutput extends CacheTime {
                return $this->mModules;
        }
 
-       public function getModuleScripts() {
-               wfDeprecated( __METHOD__, '1.33' );
-               return [];
-       }
-
        public function getModuleStyles() {
                return $this->mModuleStyles;
        }