Withoutaname has uploaded a new change for review.

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

Change subject: Removed getLang() from IContextSource and subclasses
......................................................................

Removed getLang() from IContextSource and subclasses

Change-Id: I94c3df814c06c54c071f371101882dcc71c99417
---
M RELEASE-NOTES-1.24
M includes/actions/Action.php
M includes/context/ContextSource.php
M includes/context/DerivativeContext.php
M includes/context/IContextSource.php
M includes/context/RequestContext.php
M includes/specialpage/SpecialPage.php
7 files changed, 1 insertion(+), 63 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/83/139783/1

diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24
index 0779f6b..71effbb 100644
--- a/RELEASE-NOTES-1.24
+++ b/RELEASE-NOTES-1.24
@@ -154,6 +154,7 @@
 * The skin autodiscovery mechanism has been deprecated and will be removed in
   MediaWiki 1.25. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery
   for migration guide for creators and users of custom skins that relied on it.
+* Removed getLang() from IContextSource and subclasses. (deprecated since 1.19)
 
 ==== Renamed classes ====
 * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression
diff --git a/includes/actions/Action.php b/includes/actions/Action.php
index 8fb104d..d4b08b2 100644
--- a/includes/actions/Action.php
+++ b/includes/actions/Action.php
@@ -223,17 +223,6 @@
        }
 
        /**
-        * Shortcut to get the user Language being used for this instance
-        *
-        * @deprecated since 1.19 Use getLanguage instead
-        * @return Language
-        */
-       final public function getLang() {
-               wfDeprecated( __METHOD__, '1.19' );
-               return $this->getLanguage();
-       }
-
-       /**
         * Shortcut to get the Title object from the page
         * @return Title
         */
diff --git a/includes/context/ContextSource.php 
b/includes/context/ContextSource.php
index 4a3c2cb..d0c0bdc 100644
--- a/includes/context/ContextSource.php
+++ b/includes/context/ContextSource.php
@@ -137,18 +137,6 @@
        /**
         * Get the Language object
         *
-        * @deprecated since 1.19 Use getLanguage instead
-        * @return Language
-        */
-       public function getLang() {
-               wfDeprecated( __METHOD__, '1.19' );
-
-               return $this->getLanguage();
-       }
-
-       /**
-        * Get the Language object
-        *
         * @since 1.19
         * @return Language
         */
diff --git a/includes/context/DerivativeContext.php 
b/includes/context/DerivativeContext.php
index 4a7b466..edf9e1d 100644
--- a/includes/context/DerivativeContext.php
+++ b/includes/context/DerivativeContext.php
@@ -268,15 +268,6 @@
        }
 
        /**
-        * @deprecated since 1.19 Use getLanguage instead
-        * @return Language
-        */
-       public function getLang() {
-               wfDeprecated( __METHOD__, '1.19' );
-               $this->getLanguage();
-       }
-
-       /**
         * Get the Language object
         *
         * @return Language
diff --git a/includes/context/IContextSource.php 
b/includes/context/IContextSource.php
index 5534ee3..f718103 100644
--- a/includes/context/IContextSource.php
+++ b/includes/context/IContextSource.php
@@ -79,14 +79,6 @@
        /**
         * Get the Language object
         *
-        * @deprecated since 1.19 Use getLanguage instead
-        * @return Language
-        */
-       public function getLang();
-
-       /**
-        * Get the Language object
-        *
         * @return Language
         * @since 1.19
         */
diff --git a/includes/context/RequestContext.php 
b/includes/context/RequestContext.php
index c87bfc0..1754a9d 100644
--- a/includes/context/RequestContext.php
+++ b/includes/context/RequestContext.php
@@ -299,16 +299,6 @@
        }
 
        /**
-        * @deprecated since 1.19 Use getLanguage instead
-        * @return Language
-        */
-       public function getLang() {
-               wfDeprecated( __METHOD__, '1.19' );
-
-               return $this->getLanguage();
-       }
-
-       /**
         * Get the Language object.
         * Initialization of user or request objects can depend on this.
         *
diff --git a/includes/specialpage/SpecialPage.php 
b/includes/specialpage/SpecialPage.php
index da51a33..ec8635c 100644
--- a/includes/specialpage/SpecialPage.php
+++ b/includes/specialpage/SpecialPage.php
@@ -554,19 +554,6 @@
        /**
         * Shortcut to get user's language
         *
-        * @deprecated since 1.19 Use getLanguage instead
-        * @return Language
-        * @since 1.18
-        */
-       public function getLang() {
-               wfDeprecated( __METHOD__, '1.19' );
-
-               return $this->getLanguage();
-       }
-
-       /**
-        * Shortcut to get user's language
-        *
         * @return Language
         * @since 1.19
         */

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

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

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

Reply via email to