diff --git a/lib/private/Encryption/Update.php b/lib/private/Encryption/Update.php
index f4e7f4d94becb1f8b2b553ece1d0815d5a697654..214cbaac68683d53e07166c480739dd26f39c4ea 100644
--- a/lib/private/Encryption/Update.php
+++ b/lib/private/Encryption/Update.php
@@ -26,14 +26,11 @@
 
 namespace OC\Encryption;
 
-use Exception;
 use InvalidArgumentException;
-use OC;
 use OC\Files\Filesystem;
 use OC\Files\Mount;
 use OC\Files\View;
 use OCP\Encryption\Exceptions\GenericEncryptionException;
-use OCP\ILogger;
 use Psr\Log\LoggerInterface;
 
 /**