Remove unused error logging

This commit is contained in:
Jakub Valtar
2015-10-22 12:25:22 +02:00
parent e644e13851
commit 3e2ea14925
2 changed files with 6 additions and 7 deletions

View File

@@ -1296,9 +1296,9 @@ public class JavaEditor extends Editor {
public void internalCloseRunner() {
// Added temporarily to dump error log. TODO: Remove this later [mk29]
if (JavaMode.errorLogsEnabled) {
writeErrorsToFile();
}
//if (JavaMode.errorLogsEnabled) {
// writeErrorsToFile();
//}
handleStop();
}
@@ -1328,10 +1328,12 @@ public class JavaEditor extends Editor {
}
// Not sure how this was supposed to work, tempErrorLog is always empty [jv]
/**
* Writes all error messages to a csv file.
* For analytics purposes only.
*/
/*
private void writeErrorsToFile() {
if (errorCheckerService.tempErrorLog.size() == 0) return;
@@ -1369,7 +1371,7 @@ public class JavaEditor extends Editor {
System.err.println("Failed to save log file for sketch " + getSketch().getName());
e.printStackTrace();
}
}
}*/
/*

View File

@@ -30,7 +30,6 @@ import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Executors;
@@ -514,8 +513,6 @@ public class ErrorCheckerService {
return lastCodeCheckResult.containsErrors;
}
public TreeMap<String, IProblem> tempErrorLog = new TreeMap<>();
protected URLClassLoader classLoader;