Aude has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/173501

Change subject: Remove deprecated (since 1.21) Sites class
......................................................................

Remove deprecated (since 1.21) Sites class

this is an 'alias' for SiteSQLStore and is unused
afaik in Wikibase and elsewhere.

Change-Id: Ibee3e2a89399b97fa4de48e52c3d527714cd0731
---
M autoload.php
M includes/site/SiteSQLStore.php
2 files changed, 0 insertions(+), 50 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/01/173501/1

diff --git a/autoload.php b/autoload.php
index fe16ca3..b91d72e 100644
--- a/autoload.php
+++ b/autoload.php
@@ -1031,7 +1031,6 @@
 $wgAutoloadLocalClasses['SiteStatsInit'] = __DIR__ . '/includes/SiteStats.php';
 $wgAutoloadLocalClasses['SiteStatsUpdate'] = __DIR__ . 
'/includes/deferred/SiteStatsUpdate.php';
 $wgAutoloadLocalClasses['SiteStore'] = __DIR__ . 
'/includes/site/SiteStore.php';
-$wgAutoloadLocalClasses['Sites'] = __DIR__ . '/includes/site/SiteSQLStore.php';
 $wgAutoloadLocalClasses['Skin'] = __DIR__ . '/includes/skins/Skin.php';
 $wgAutoloadLocalClasses['SkinApi'] = __DIR__ . '/includes/skins/SkinApi.php';
 $wgAutoloadLocalClasses['SkinApiTemplate'] = __DIR__ . 
'/includes/skins/SkinApiTemplate.php';
diff --git a/includes/site/SiteSQLStore.php b/includes/site/SiteSQLStore.php
index e5d05be..fde22f1 100644
--- a/includes/site/SiteSQLStore.php
+++ b/includes/site/SiteSQLStore.php
@@ -444,52 +444,3 @@
        }
 
 }
-
-/**
- * @deprecated since 1.21
- */
-class Sites extends SiteSQLStore {
-
-       /**
-        * Factory for creating new site objects.
-        *
-        * @since 1.21
-        * @deprecated since 1.21
-        *
-        * @param string|bool $globalId
-        *
-        * @return Site
-        */
-       public static function newSite( $globalId = false ) {
-               $site = new Site();
-
-               if ( $globalId !== false ) {
-                       $site->setGlobalId( $globalId );
-               }
-
-               return $site;
-       }
-
-       /**
-        * @deprecated since 1.21
-        * @return SiteStore
-        */
-       public static function singleton() {
-               static $singleton;
-
-               if ( $singleton === null ) {
-                       $singleton = new static();
-               }
-
-               return $singleton;
-       }
-
-       /**
-        * @deprecated since 1.21
-        * @param string $group
-        * @return SiteList
-        */
-       public function getSiteGroup( $group ) {
-               return $this->getSites()->getGroup( $group );
-       }
-}

-- 
To view, visit https://gerrit.wikimedia.org/r/173501
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibee3e2a89399b97fa4de48e52c3d527714cd0731
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aude <aude.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to