From f63d82bd6dd842af203e11fb7688ae464b87d1ed Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Fri, 24 Apr 2015 00:01:01 -0400 Subject: [PATCH] removing unused code and making notes about other unused code --- java/src/processing/mode/java/JavaEditor.java | 24 +++++++------------ .../mode/java/tweak/ColorSelector.java | 3 +++ 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/java/src/processing/mode/java/JavaEditor.java b/java/src/processing/mode/java/JavaEditor.java index 481a64d01..99867fc0a 100644 --- a/java/src/processing/mode/java/JavaEditor.java +++ b/java/src/processing/mode/java/JavaEditor.java @@ -2559,8 +2559,6 @@ public class JavaEditor extends Editor { public String[] baseCode; - final static int SPACE_AMOUNT = 0; - UDPTweakClient tweakClient; @@ -2575,7 +2573,7 @@ public class JavaEditor extends Editor { getJavaTextArea().stopInteractiveMode(); // remove space from the code (before and after) - removeSpacesFromCode(); + //removeSpacesFromCode(); // check which tabs were modified boolean modified = false; @@ -2624,9 +2622,8 @@ public class JavaEditor extends Editor { // save the sketch try { sketch.save(); - } - catch (IOException e) { - Base.showWarning("Tweak Mode", "Could not save the modified sketch!", e); + } catch (IOException e) { + Base.showWarning("Error", "Could not save the modified sketch.", e); } // repaint the editor header (show the modified tabs) @@ -2665,16 +2662,9 @@ public class JavaEditor extends Editor { public void initBaseCode() { SketchCode[] code = sketch.getCode(); - String space = new String(); - - for (int i=0; i