Removed getLang() from IContextSource and subclasses

Change-Id: I94c3df814c06c54c071f371101882dcc71c99417
This commit is contained in:
withoutaname 2014-06-15 23:52:12 -07:00
parent 3b658a2dd3
commit e45e0b1a66
7 changed files with 1 additions and 63 deletions

View file

@ -165,6 +165,7 @@ changes to languages because of Bugzilla reports.
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

View file

@ -222,17 +222,6 @@ abstract class Action {
return $this->getContext()->getLanguage();
}
/**
* 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

View file

@ -134,18 +134,6 @@ abstract class ContextSource implements IContextSource {
return $this->getContext()->getUser();
}
/**
* 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
*

View file

@ -267,15 +267,6 @@ class DerivativeContext extends ContextSource {
}
}
/**
* @deprecated since 1.19 Use getLanguage instead
* @return Language
*/
public function getLang() {
wfDeprecated( __METHOD__, '1.19' );
$this->getLanguage();
}
/**
* Get the Language object
*

View file

@ -76,14 +76,6 @@ interface IContextSource {
*/
public function getUser();
/**
* Get the Language object
*
* @deprecated since 1.19 Use getLanguage instead
* @return Language
*/
public function getLang();
/**
* Get the Language object
*

View file

@ -298,16 +298,6 @@ class RequestContext implements IContextSource {
}
}
/**
* @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.

View file

@ -551,19 +551,6 @@ class SpecialPage {
return $this->getContext()->getSkin();
}
/**
* 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
*