Remove MediaWikiSite::newFromGlobalId (deprecated since 1.21)
Isn't used anymore anywhere. Bug: T122754 Change-Id: I95b20c005721837dcbf9ab979674ac09c460cdd0
This commit is contained in:
parent
6add84830c
commit
18bf9fbda2
2 changed files with 1 additions and 14 deletions
|
|
@ -267,6 +267,7 @@ HHVM 3.1.
|
|||
* OutputPage::out() was removed (deprecated since 1.22).
|
||||
* OutputPage::setAllowedModules() was removed (deprecated since 1.24).
|
||||
* UserrightsPage::makeGroupNameListForLog() was removed (deprecated since 1.21).
|
||||
* MediaWikiSite::newFromGlobalId() was removed (deprecated since 1.21).
|
||||
|
||||
=== Languages updated in 1.27 ===
|
||||
|
||||
|
|
|
|||
|
|
@ -39,20 +39,6 @@ class MediaWikiSite extends Site {
|
|||
const PATH_FILE = 'file_path';
|
||||
const PATH_PAGE = 'page_path';
|
||||
|
||||
/**
|
||||
* @since 1.21
|
||||
* @deprecated since 1.21 Just use the constructor or the factory Site::newForType
|
||||
*
|
||||
* @param int $globalId
|
||||
*
|
||||
* @return MediaWikiSite
|
||||
*/
|
||||
public static function newFromGlobalId( $globalId ) {
|
||||
$site = new static();
|
||||
$site->setGlobalId( $globalId );
|
||||
return $site;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue