Skip to content

Commit 885a53e

Browse files
committed
Remove unused error logging
1 parent 1d16319 commit 885a53e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

java/src/processing/mode/java/JavaEditor.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,9 +1296,9 @@ public void statusError(String what) {
12961296

12971297
public void internalCloseRunner() {
12981298
// Added temporarily to dump error log. TODO: Remove this later [mk29]
1299-
if (JavaMode.errorLogsEnabled) {
1300-
writeErrorsToFile();
1301-
}
1299+
//if (JavaMode.errorLogsEnabled) {
1300+
// writeErrorsToFile();
1301+
//}
13021302
handleStop();
13031303
}
13041304

@@ -1328,10 +1328,12 @@ public void dispose() {
13281328
}
13291329

13301330

1331+
// Not sure how this was supposed to work, tempErrorLog is always empty [jv]
13311332
/**
13321333
* Writes all error messages to a csv file.
13331334
* For analytics purposes only.
13341335
*/
1336+
/*
13351337
private void writeErrorsToFile() {
13361338
if (errorCheckerService.tempErrorLog.size() == 0) return;
13371339
@@ -1369,7 +1371,7 @@ private void writeErrorsToFile() {
13691371
System.err.println("Failed to save log file for sketch " + getSketch().getName());
13701372
e.printStackTrace();
13711373
}
1372-
}
1374+
}*/
13731375

13741376

13751377
/*

java/src/processing/mode/java/pdex/ErrorCheckerService.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import java.util.HashMap;
3131
import java.util.List;
3232
import java.util.Map;
33-
import java.util.TreeMap;
3433
import java.util.concurrent.ArrayBlockingQueue;
3534
import java.util.concurrent.BlockingQueue;
3635
import java.util.concurrent.Executors;
@@ -514,8 +513,6 @@ public boolean hasErrors(){
514513
return lastCodeCheckResult.containsErrors;
515514
}
516515

517-
public TreeMap<String, IProblem> tempErrorLog = new TreeMap<>();
518-
519516
protected URLClassLoader classLoader;
520517

521518

0 commit comments

Comments
 (0)