diff --git a/lib/private/Comments/ManagerFactory.php b/lib/private/Comments/ManagerFactory.php
index a5ac2d6554541fb1f0ad8f713261e5d7cd2bcc67..67b006bdb636cd5170f6d89677ffc7549b3e03d6 100644
--- a/lib/private/Comments/ManagerFactory.php
+++ b/lib/private/Comments/ManagerFactory.php
@@ -27,9 +27,7 @@ namespace OC\Comments;
 
 use OCP\Comments\ICommentsManager;
 use OCP\Comments\ICommentsManagerFactory;
-use OCP\IInitialStateService;
 use OCP\IServerContainer;
-use Psr\Log\LoggerInterface;
 
 class ManagerFactory implements ICommentsManagerFactory {
 
diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php
index a75330625766975c4958fcba2331d14a5c457cf1..355b1af134795ef6e01775912cfb10c293c7e155 100644
--- a/tests/lib/Comments/ManagerTest.php
+++ b/tests/lib/Comments/ManagerTest.php
@@ -4,7 +4,6 @@ namespace Test\Comments;
 
 use OC\Comments\Comment;
 use OC\Comments\Manager;
-use OC\Comments\ManagerFactory;
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Comments\IComment;
 use OCP\Comments\ICommentsEventHandler;