Remove MediaWikiSite::newFromGlobalId (deprecated since 1.21)
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Fri, 1 Apr 2016 19:31:37 +0000 (21:31 +0200)
committerReedy <reedy@wikimedia.org>
Fri, 1 Apr 2016 20:16:13 +0000 (20:16 +0000)
Isn't used anymore anywhere.

Bug: T122754
Change-Id: I95b20c005721837dcbf9ab979674ac09c460cdd0

RELEASE-NOTES-1.27
includes/site/MediaWikiSite.php

index 1d62877..ab200b8 100644 (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 ===
 
index 0f7e5d7..6734d5f 100644 (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.
         *