diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index d49db86..49ac5bf 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -276,7 +276,14 @@
1679688274094
-
+
+ 1679696235787
+
+
+
+ 1679696235787
+
+
diff --git a/src/Main.java b/src/Main.java
index 9e32e0a..0269509 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -74,7 +74,6 @@ public class Main {
System.out.println("Commanded Threads " + saidThreads);
}
-
List pathList = new ArrayList<>();
List allFiles = new ArrayList<>();
@@ -87,8 +86,6 @@ public class Main {
allFiles.addAll(pathList);
}
-
-
// calculations for multithreading
//The number of Cores or better said Threads that can be used
int availableThreads = Runtime.getRuntime().availableProcessors();
@@ -119,8 +116,7 @@ public class Main {
}
//Start Multithreading
- //sectionedList gives the thread their Assigned Part of Files and allFiles are all the Files
-
+ //sectionedList gives the thread their Assigned Part of Files
ThreadedCompare threadedCompare = new ThreadedCompare(sectionedList);
threadedCompare.start();
@@ -135,7 +131,6 @@ public class Main {
} else if (showProgress) {
System.out.print("Progress: " + progress + " / " + filesToBeDone + " | " + (progress * 100 / filesToBeDone) + "%" + "\r");
}
-
}
ArrayList toRemove = new ArrayList();
for (String md5: fileMap.keySet()) {
@@ -158,7 +153,6 @@ public class Main {
}
}
- // new algo
List allTheFilesWillBeDeleted = new ArrayList<>();
@@ -176,17 +170,12 @@ public class Main {
}
-
-
if (deleteDups) {
delete(allTheFilesWillBeDeleted);
} else {
ask(doTheColorThingy, bytes, allTheFilesWillBeDeleted);
}
-
-
-
}
//print files and ask user
public static void ask(boolean color, long bytes, List deleteThem) {
@@ -214,7 +203,6 @@ public class Main {
for (Path file : deleteThem) {
if (file != null) {file.toFile().delete();}
-
}
}
diff --git a/src/ThreadedCompare.java b/src/ThreadedCompare.java
index 00e9f11..d4b437a 100644
--- a/src/ThreadedCompare.java
+++ b/src/ThreadedCompare.java
@@ -29,7 +29,6 @@ public class ThreadedCompare extends Thread {
throw new RuntimeException(e);
}
-
if (Main.fileMap.containsKey(MD5)) {
fileArray.addAll(Main.fileMap.get(MD5));
Main.fileMap.put(MD5, fileArray);
@@ -37,17 +36,11 @@ public class ThreadedCompare extends Thread {
Main.fileMap.put(MD5, fileArray);
}
-
Main.progress++;
}
-
Main.completedThreads++;
-
-
-
-
}
//this is used to get the MD5 String of one of the files (one of them is just fine since they both have the same value)