Umherirrender has uploaded a new change for review.

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

Change subject: Remove OutputPage::getStatusMessage() (deprecated since 1.18)
......................................................................

Remove OutputPage::getStatusMessage() (deprecated since 1.18)

Also removed a comment where the method was mentioned.

Change-Id: I802f0f41e107a1d677fb899f6e09ea31df3c4e6f
---
M RELEASE-NOTES-1.24
M includes/OutputPage.php
M includes/libs/HttpStatus.php
3 files changed, 1 insertion(+), 15 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/34/142534/1

diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24
index 01ae9e7..f0063cd 100644
--- a/RELEASE-NOTES-1.24
+++ b/RELEASE-NOTES-1.24
@@ -185,6 +185,7 @@
 * Removed ApiBase::createContext(). (deprecated since 1.19)
 * Removed MWNamespace::isMain(). (deprecated since 1.19)
 * Removed Preferences::loadOldSearchNs(). (deprecated since 1.19)
+* Removed OutputPage::getStatusMessage(). (deprecated since 1.18)
 
 ==== Renamed classes ====
 * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression
diff --git a/includes/OutputPage.php b/includes/OutputPage.php
index a2b8920..11dc7b8 100644
--- a/includes/OutputPage.php
+++ b/includes/OutputPage.php
@@ -2070,19 +2070,6 @@
        }
 
        /**
-        * Get the message associated with the HTTP response code $code
-        *
-        * @param int $code Status code
-        * @return string|null Message or null if $code is not in the list of 
messages
-        *
-        * @deprecated since 1.18 Use HttpStatus::getMessage() instead.
-        */
-       public static function getStatusMessage( $code ) {
-               wfDeprecated( __METHOD__, '1.18' );
-               return HttpStatus::getMessage( $code );
-       }
-
-       /**
         * Finally, all the text has been munged and accumulated into
         * the object, let's actually output it:
         */
diff --git a/includes/libs/HttpStatus.php b/includes/libs/HttpStatus.php
index d72ffca..809bfdf 100644
--- a/includes/libs/HttpStatus.php
+++ b/includes/libs/HttpStatus.php
@@ -28,8 +28,6 @@
        /**
         * Get the message associated with HTTP response code $code
         *
-        * Replace OutputPage::getStatusMessage( $code )
-        *
         * @param $code Integer: status code
         * @return String or null: message or null if $code is not in the list 
of
         *         messages

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

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

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

Reply via email to