Remove MediaWikiSite::newFromGlobalId (deprecated since 1.21)

Isn't used anymore anywhere.

Bug: T122754
Change-Id: I95b20c005721837dcbf9ab979674ac09c460cdd0
This commit is contained in:
Florian 2016-04-01 21:31:37 +02:00 committed by Reedy
parent 6add84830c
commit 18bf9fbda2
2 changed files with 1 additions and 14 deletions

View file

@ -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 ===

View file

@ -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.
*