1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-22 05:23:06 +02:00

remove unused in main window

This commit is contained in:
soloturn
2022-04-25 07:47:55 +02:00
parent ea097ad669
commit e3550d6f68

View File

@@ -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