فهرست منبع

remove unused LOGs and improved var naming

Jan-Peter Klein 2 ماه پیش
والد
کامیت
387fb28c65

+ 2 - 2
src/main/java/org/cryptomator/ui/dialogs/Dialogs.java

@@ -23,10 +23,10 @@ public class Dialogs {
 				.setIcon(FontAwesome5Icon.QUESTION) //
 				.setOkButtonKey("removeVault.confirmBtn") //
 				.setCancelButtonKey("generic.button.cancel") //
-				.setOkAction(v -> {
+				.setOkAction(stage -> {
 					LOG.debug("Removing vault {}.", vault.getDisplayName());
 					vaults.remove(vault);
-					v.close();
+					stage.close();
 				}) //
 				.build();
 	}

+ 0 - 4
src/main/java/org/cryptomator/ui/mainwindow/VaultDetailMissingVaultController.java

@@ -5,8 +5,6 @@ import org.cryptomator.common.vaults.VaultListManager;
 import org.cryptomator.ui.common.FxController;
 import org.cryptomator.ui.dialogs.Dialogs;
 import org.cryptomator.ui.dialogs.SimpleDialog;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 import javax.inject.Inject;
 import javax.inject.Provider;
@@ -23,8 +21,6 @@ import static org.cryptomator.common.Constants.CRYPTOMATOR_FILENAME_GLOB;
 @MainWindowScoped
 public class VaultDetailMissingVaultController implements FxController {
 
-	private static final Logger LOG = LoggerFactory.getLogger(VaultDetailMissingVaultController.class);
-
 	private final ObjectProperty<Vault> vault;
 	private final ObservableList<Vault> vaults;
 	private final ResourceBundle resourceBundle;

+ 0 - 4
src/main/java/org/cryptomator/ui/mainwindow/VaultDetailUnknownErrorController.java

@@ -6,8 +6,6 @@ import org.cryptomator.ui.common.FxController;
 import org.cryptomator.ui.dialogs.Dialogs;
 import org.cryptomator.ui.dialogs.SimpleDialog;
 import org.cryptomator.ui.fxapp.FxApplicationWindows;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 import javax.inject.Inject;
 import javax.inject.Named;
@@ -20,8 +18,6 @@ import javafx.stage.Stage;
 @MainWindowScoped
 public class VaultDetailUnknownErrorController implements FxController {
 
-	private static final Logger LOG = LoggerFactory.getLogger(VaultDetailUnknownErrorController.class);
-
 	private final ObjectProperty<Vault> vault;
 	private final FxApplicationWindows appWindows;
 	private final Stage errorWindow;

+ 0 - 5
src/main/java/org/cryptomator/ui/mainwindow/VaultListContextMenuController.java

@@ -10,8 +10,6 @@ import org.cryptomator.ui.dialogs.SimpleDialog;
 import org.cryptomator.ui.fxapp.FxApplicationWindows;
 import org.cryptomator.ui.vaultoptions.SelectedVaultOptionsTab;
 import org.cryptomator.ui.vaultoptions.VaultOptionsComponent;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 import javax.inject.Inject;
 import javax.inject.Provider;
@@ -33,9 +31,6 @@ import static org.cryptomator.common.vaults.VaultState.Value.UNLOCKED;
 @MainWindowScoped
 public class VaultListContextMenuController implements FxController {
 
-	private static final Logger LOG = LoggerFactory.getLogger(VaultListContextMenuController.class);
-
-
 	private final ReadOnlyObjectProperty<Vault> selectedVault;
 	private final Stage mainWindow;
 	private final FxApplicationWindows appWindows;