Jeroen De Dauw has submitted this change and it was merged.

Change subject: Drop unused use clauses from Client
......................................................................


Drop unused use clauses from Client

I found these with a regex.

Change-Id: I740f0825f67874cc411c569089e7a7eb17f62534
---
M client/includes/Hooks/DataUpdateHookHandlers.php
M client/includes/Hooks/SidebarHookHandlers.php
M client/includes/OtherProjectsSitesGenerator.php
M client/includes/api/PageTerms.php
M client/tests/phpunit/includes/Hooks/LanguageLinkBadgeDisplayTest.php
M client/tests/phpunit/includes/Hooks/SidebarHookHandlersTest.php
M client/tests/phpunit/includes/OtherProjectsSitesGeneratorTest.php
M client/tests/phpunit/includes/store/sql/DirectSqlStoreTest.php
8 files changed, 2 insertions(+), 8 deletions(-)

Approvals:
  Jeroen De Dauw: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/client/includes/Hooks/DataUpdateHookHandlers.php 
b/client/includes/Hooks/DataUpdateHookHandlers.php
index aad1efa..9287944 100644
--- a/client/includes/Hooks/DataUpdateHookHandlers.php
+++ b/client/includes/Hooks/DataUpdateHookHandlers.php
@@ -4,7 +4,6 @@
 
 use Content;
 use ManualLogEntry;
-use Title;
 use User;
 use Wikibase\Client\Store\UsageUpdater;
 use Wikibase\Client\Usage\ParserOutputUsageAccumulator;
diff --git a/client/includes/Hooks/SidebarHookHandlers.php 
b/client/includes/Hooks/SidebarHookHandlers.php
index e2f625a..375f82c 100644
--- a/client/includes/Hooks/SidebarHookHandlers.php
+++ b/client/includes/Hooks/SidebarHookHandlers.php
@@ -2,7 +2,6 @@
 
 namespace Wikibase\Client\Hooks;
 
-use Action;
 use OutputPage;
 use ParserOutput;
 use Skin;
diff --git a/client/includes/OtherProjectsSitesGenerator.php 
b/client/includes/OtherProjectsSitesGenerator.php
index 5e59ff8..94bc2b1 100644
--- a/client/includes/OtherProjectsSitesGenerator.php
+++ b/client/includes/OtherProjectsSitesGenerator.php
@@ -3,7 +3,6 @@
 namespace Wikibase\Client;
 
 use Site;
-use SiteList;
 use SiteStore;
 
 /**
@@ -112,4 +111,5 @@
        private function getLocalSite() {
                return $this->siteStore->getSite( $this->localSiteId );
        }
+
 }
diff --git a/client/includes/api/PageTerms.php 
b/client/includes/api/PageTerms.php
index 39329d4..37e797c 100644
--- a/client/includes/api/PageTerms.php
+++ b/client/includes/api/PageTerms.php
@@ -98,7 +98,7 @@
        }
 
        /**
-        * @param EntityID[] $entityIds
+        * @param EntityId[] $entityIds
         * @param string[]|null $termTypes
         * @param string[]|null $languageCodes
         *
diff --git 
a/client/tests/phpunit/includes/Hooks/LanguageLinkBadgeDisplayTest.php 
b/client/tests/phpunit/includes/Hooks/LanguageLinkBadgeDisplayTest.php
index 75b8650..522345a 100644
--- a/client/tests/phpunit/includes/Hooks/LanguageLinkBadgeDisplayTest.php
+++ b/client/tests/phpunit/includes/Hooks/LanguageLinkBadgeDisplayTest.php
@@ -2,7 +2,6 @@
 
 namespace Wikibase\Client\Tests\Hooks;
 
-use FauxRequest;
 use Language;
 use OutputPage;
 use ParserOutput;
diff --git a/client/tests/phpunit/includes/Hooks/SidebarHookHandlersTest.php 
b/client/tests/phpunit/includes/Hooks/SidebarHookHandlersTest.php
index e7735a2..56615c7 100644
--- a/client/tests/phpunit/includes/Hooks/SidebarHookHandlersTest.php
+++ b/client/tests/phpunit/includes/Hooks/SidebarHookHandlersTest.php
@@ -2,7 +2,6 @@
 
 namespace Wikibase\Client\Tests\Hooks;
 
-use FauxRequest;
 use IContextSource;
 use Language;
 use MediaWikiSite;
diff --git a/client/tests/phpunit/includes/OtherProjectsSitesGeneratorTest.php 
b/client/tests/phpunit/includes/OtherProjectsSitesGeneratorTest.php
index fda483c..20a7386 100644
--- a/client/tests/phpunit/includes/OtherProjectsSitesGeneratorTest.php
+++ b/client/tests/phpunit/includes/OtherProjectsSitesGeneratorTest.php
@@ -4,7 +4,6 @@
 
 use MediaWikiSite;
 use Site;
-use SiteList;
 use Wikibase\Client\OtherProjectsSitesGenerator;
 use Wikibase\Test\MockSiteStore;
 
diff --git a/client/tests/phpunit/includes/store/sql/DirectSqlStoreTest.php 
b/client/tests/phpunit/includes/store/sql/DirectSqlStoreTest.php
index 6a31dd2..55952fe 100644
--- a/client/tests/phpunit/includes/store/sql/DirectSqlStoreTest.php
+++ b/client/tests/phpunit/includes/store/sql/DirectSqlStoreTest.php
@@ -2,7 +2,6 @@
 
 namespace Wikibase\Client\Tests\Store\Sql;
 
-use Language;
 use Wikibase\Client\WikibaseClient;
 use Wikibase\DataModel\Entity\BasicEntityIdParser;
 use Wikibase\DirectSqlStore;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I740f0825f67874cc411c569089e7a7eb17f62534
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: JanZerebecki <[email protected]>
Gerrit-Reviewer: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to