From e25dfaad35111d4ffbd2f53cc9ed1703b0751e24 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Fri, 21 May 2021 15:59:43 +0200 Subject: [PATCH] clean up --- .../cryptomator/ui/health/StartController.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/main/ui/src/main/java/org/cryptomator/ui/health/StartController.java b/main/ui/src/main/java/org/cryptomator/ui/health/StartController.java index 469503732..5d2a1a281 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/health/StartController.java +++ b/main/ui/src/main/java/org/cryptomator/ui/health/StartController.java @@ -5,8 +5,6 @@ import org.cryptomator.common.vaults.Vault; import org.cryptomator.cryptofs.VaultConfig; import org.cryptomator.cryptofs.VaultConfigLoadException; import org.cryptomator.cryptofs.VaultKeyInvalidException; -import org.cryptomator.cryptofs.health.api.HealthCheck; -import org.cryptomator.cryptofs.health.dirid.DirIdCheck; import org.cryptomator.cryptolib.api.Masterkey; import org.cryptomator.cryptolib.api.MasterkeyLoadingFailedException; import org.cryptomator.ui.common.FxController; @@ -19,22 +17,10 @@ import org.slf4j.LoggerFactory; import javax.inject.Inject; import javafx.application.Platform; -import javafx.beans.binding.BooleanBinding; -import javafx.beans.property.BooleanProperty; -import javafx.beans.property.SimpleBooleanProperty; -import javafx.collections.FXCollections; import javafx.fxml.FXML; import javafx.scene.Scene; -import javafx.scene.control.ListView; -import javafx.scene.control.RadioButton; -import javafx.scene.control.ToggleGroup; -import javafx.scene.control.cell.CheckBoxListCell; import javafx.stage.Stage; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; import java.util.Optional; -import java.util.Set; import java.util.concurrent.ExecutorService; import java.util.concurrent.atomic.AtomicReference; @@ -49,20 +35,18 @@ public class StartController implements FxController { private final ExecutorService executor; private final AtomicReference masterkeyRef; private final AtomicReference vaultConfigRef; - private final Collection selectedChecks; private final Lazy checkScene; /* FXML */ @Inject - public StartController(@HealthCheckWindow Vault vault, @HealthCheckWindow Stage window, @HealthCheckWindow KeyLoadingStrategy keyLoadingStrategy, ExecutorService executor, AtomicReference masterkeyRef, AtomicReference vaultConfigRef, Collection selectedChecks, @FxmlScene(FxmlFile.HEALTH_CHECK) Lazy checkScene) { + public StartController(@HealthCheckWindow Vault vault, @HealthCheckWindow Stage window, @HealthCheckWindow KeyLoadingStrategy keyLoadingStrategy, ExecutorService executor, AtomicReference masterkeyRef, AtomicReference vaultConfigRef, @FxmlScene(FxmlFile.HEALTH_CHECK) Lazy checkScene) { this.window = window; this.unverifiedVaultConfig = vault.getUnverifiedVaultConfig(); //TODO: prevent workflow at all, if the vault config is emtpy this.keyLoadingStrategy = keyLoadingStrategy; this.executor = executor; this.masterkeyRef = masterkeyRef; this.vaultConfigRef = vaultConfigRef; - this.selectedChecks = selectedChecks; this.checkScene = checkScene; }