jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Aaron Schulz: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24
index edc8263..20c7000 100644
--- a/RELEASE-NOTES-1.24
+++ b/RELEASE-NOTES-1.24
@@ -165,6 +165,7 @@
   for migration guide for creators and users of custom skins that relied on it.
 * ResourceLoaderFileModule#getAllStyleFiles now returns all style files and all
   skin style files used by the module.
+* 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: merged
Gerrit-Change-Id: I94c3df814c06c54c071f371101882dcc71c99417
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Withoutaname <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Daniel Friesen <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Parent5446 <[email protected]>
Gerrit-Reviewer: Withoutaname <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to