HTMLForm: Remove deprecated unused getErrors() method
authorDerick Alangi <alangiderick@gmail.com>
Mon, 3 Jun 2019 14:16:38 +0000 (15:16 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Mon, 3 Jun 2019 14:20:54 +0000 (15:20 +0100)
Was deprecated in 1.28 and no longer used, see usage below;

Usage
=====

https://codesearch.wmflabs.org/search/?q=%5CbgetErrors%5C(%20(.*%3F)%20%5C)&i=nope&files=&repos=

Bug: T220656
Change-Id: I542df4f1f7f4180d42282eaf2e069ab0bc9e8614

RELEASE-NOTES-1.34
includes/htmlform/HTMLForm.php

index d372db8..8c230bf 100644 (file)
@@ -189,8 +189,10 @@ because of Phabricator reports.
   Use the mediawiki.String module instead.
 * mw.language.specialCharacters, deprecated in 1.33, has been removed.
   Use require( 'mediawiki.language.specialCharacters' ) instead.
-* EditPage::submit(), deprecated in 1.29, has been removed. Used $this->edit()
+* EditPage::submit(), deprecated in 1.29, has been removed. Use $this->edit()
   directly.
+* HTMLForm::getErrors(), deprecated in 1.28, has been removed. Use
+  getErrorsOrWarnings() instead.
 * …
 
 === Deprecations in 1.34 ===
index 5042028..acf64db 100644 (file)
@@ -1277,20 +1277,6 @@ class HTMLForm extends ContextSource {
                return $this->displaySection( $this->mFieldTree, $this->mTableId );
        }
 
-       /**
-        * Format and display an error message stack.
-        *
-        * @param string|array|Status $errors
-        *
-        * @deprecated since 1.28, use getErrorsOrWarnings() instead
-        *
-        * @return string
-        */
-       public function getErrors( $errors ) {
-               wfDeprecated( __METHOD__, '1.28' );
-               return $this->getErrorsOrWarnings( $errors, 'error' );
-       }
-
        /**
         * Returns a formatted list of errors or warnings from the given elements.
         *