diff --git a/lib/Migration/RememberLocalGroupsForPotentialMigrations.php b/lib/Migration/RememberLocalGroupsForPotentialMigrations.php index 9bc9e81b4..2652b051e 100644 --- a/lib/Migration/RememberLocalGroupsForPotentialMigrations.php +++ b/lib/Migration/RememberLocalGroupsForPotentialMigrations.php @@ -27,7 +27,6 @@ use OC\Group\Database; use OCA\User_SAML\GroupManager; -use OCA\User_SAML\UserBackend; use OCP\IConfig; use OCP\IGroupManager; use OCP\Migration\IOutput; @@ -41,17 +40,13 @@ class RememberLocalGroupsForPotentialMigrations implements IRepairStep { private $groupManager; /** @var IConfig */ private $config; - /** @var UserBackend */ - private $ownUserBackend; public function __construct( IGroupManager $groupManager, - IConfig $config, - UserBackend $ownUserBackend + IConfig $config ) { $this->groupManager = $groupManager; $this->config = $config; - $this->ownUserBackend = $ownUserBackend; } public function getName(): string { @@ -98,7 +93,6 @@ protected function findBackend(): Database { foreach ($groupBackends as $backend) { if ($backend instanceof Database) { return $backend; - break; } } throw new UnexpectedValueException();