From e3550d6f6830ed4bd39064daf75af3e87c971f45 Mon Sep 17 00:00:00 2001 From: soloturn Date: Mon, 25 Apr 2022 07:47:55 +0200 Subject: [PATCH] remove unused in main window --- src/main/java/com/rarchives/ripme/ui/MainWindow.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index 8ecbc280..dde03dc5 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -926,7 +926,7 @@ public final class MainWindow implements Runnable, RipStatusHandler { return; } File chosenFile = jfc.getSelectedFile(); - String chosenPath = null; + String chosenPath; try { chosenPath = chosenFile.getCanonicalPath(); } catch (Exception e) { @@ -945,7 +945,7 @@ public final class MainWindow implements Runnable, RipStatusHandler { return; } File chosenFile = jfc.getSelectedFile(); - String chosenPath = null; + String chosenPath; try { chosenPath = chosenFile.getCanonicalPath(); } catch (Exception e) { @@ -1273,7 +1273,7 @@ public final class MainWindow implements Runnable, RipStatusHandler { if (!urlString.startsWith("http")) { urlString = "http://" + urlString; } - URL url = null; + URL url; try { url = new URL(urlString); } catch (MalformedURLException e) { @@ -1557,10 +1557,6 @@ public final class MainWindow implements Runnable, RipStatusHandler { ripButton.doClick(); } - public static void enableWindowPositioning() { - Utils.setConfigBoolean("window.position", true); - } - private static boolean hasWindowPositionBug() { String osName = System.getProperty("os.name"); // Java on Windows has a bug where if we try to manually set the position of the