File tree 3 files changed +1
-19
lines changed
arduino-core/src/processing/app
3 files changed +1
-19
lines changed Original file line number Diff line number Diff line change 13
13
@ SuppressWarnings ("serial" )
14
14
public abstract class AbstractMonitor extends JFrame implements ActionListener {
15
15
16
- private boolean monitorEnabled ;
17
16
private boolean closed ;
18
17
19
18
private StringBuffer updateBuffer ;
@@ -78,15 +77,13 @@ public void actionPerformed(ActionEvent event) {
78
77
updateTimer = new Timer (33 , this ); // redraw serial monitor at 30 Hz
79
78
updateTimer .start ();
80
79
81
- monitorEnabled = true ;
82
80
closed = false ;
83
81
}
84
82
85
83
protected abstract void onCreateWindow (Container mainPane );
86
84
87
85
public void enableWindow (boolean enable ) {
88
86
onEnableWindow (enable );
89
- monitorEnabled = enable ;
90
87
}
91
88
92
89
protected abstract void onEnableWindow (boolean enable );
Original file line number Diff line number Diff line change @@ -748,7 +748,7 @@ public void handleNew() throws Exception {
748
748
try {
749
749
File file = createNewUntitled ();
750
750
if (file != null ) {
751
- Editor editor = handleOpen (file , true );
751
+ handleOpen (file , true );
752
752
}
753
753
754
754
} catch (IOException e ) {
Original file line number Diff line number Diff line change @@ -53,11 +53,6 @@ public class SketchCode {
53
53
54
54
private boolean modified ;
55
55
56
- /**
57
- * where this code starts relative to the concat'd code
58
- */
59
- private int preprocOffset ;
60
-
61
56
private Object metadata ;
62
57
63
58
public SketchCode (File file ) {
@@ -190,16 +185,6 @@ public boolean isModified() {
190
185
}
191
186
192
187
193
- public void setPreprocOffset (int preprocOffset ) {
194
- this .preprocOffset = preprocOffset ;
195
- }
196
-
197
-
198
- public void addPreprocOffset (int extra ) {
199
- preprocOffset += extra ;
200
- }
201
-
202
-
203
188
/**
204
189
* Load this piece of code from a file.
205
190
*/
You can’t perform that action at this time.
0 commit comments