cleaning more warnings and remove empty class

This commit is contained in:
Ben Fry
2020-01-16 21:28:59 -05:00
parent 493f7fa93b
commit 6f195ef11f
4 changed files with 2 additions and 11 deletions

View File

@@ -864,7 +864,7 @@ public class AutoFormat implements Formatter {
* @param result The code to format.
* @return The formatted code.
*/
private String simpleRegexCleanup(String result) {
static private String simpleRegexCleanup(String result) {
return result.replaceAll("([^ \n]+) +\n", "$1\n"); // Remove trail whitespace
}
}

View File

@@ -299,7 +299,7 @@ public class RuntimePathBuilder {
* @param caches The caches to invalidate so that, when their value is requested again, the value
* is generated again.
*/
private void invalidateAll(List<CachedRuntimePathFactory> caches) {
static private void invalidateAll(List<CachedRuntimePathFactory> caches) {
for (CachedRuntimePathFactory cache : caches) {
cache.invalidateCache();
}

View File

@@ -53,7 +53,6 @@ public class PdeParseTreeListener extends ProcessingBaseListener {
private static final String VERSION_STR = "3.0.0";
private static final String SIZE_METHOD_NAME = "size";
private static final String FULLSCREEN_METHOD_NAME = "fullScreen";
private final int tabSize;
private String sketchName;
private boolean isTesting;
@@ -100,7 +99,6 @@ public class PdeParseTreeListener extends ProcessingBaseListener {
rewriter = new TokenStreamRewriter(tokens);
sketchName = newSketchName;
tabSize = newTabSize;
destinationPackageName = newDestinationPackageName;
pdeParseTreeErrorListenerMaybe = Optional.empty();

View File

@@ -1,7 +0,0 @@
package processing.mode.java.preproc.code;
import org.antlr.v4.runtime.TokenStreamRewriter;
import processing.mode.java.preproc.PdeParseTreeListener;