File tree Expand file tree Collapse file tree 3 files changed +1
-19
lines changed
arduino-core/src/processing/app Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Original file line number Diff line number Diff line change 1313@ SuppressWarnings ("serial" )
1414public abstract class AbstractMonitor extends JFrame implements ActionListener {
1515
16- private boolean monitorEnabled ;
1716 private boolean closed ;
1817
1918 private StringBuffer updateBuffer ;
@@ -78,15 +77,13 @@ public void actionPerformed(ActionEvent event) {
7877 updateTimer = new Timer (33 , this ); // redraw serial monitor at 30 Hz
7978 updateTimer .start ();
8079
81- monitorEnabled = true ;
8280 closed = false ;
8381 }
8482
8583 protected abstract void onCreateWindow (Container mainPane );
8684
8785 public void enableWindow (boolean enable ) {
8886 onEnableWindow (enable );
89- monitorEnabled = enable ;
9087 }
9188
9289 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 {
748748 try {
749749 File file = createNewUntitled ();
750750 if (file != null ) {
751- Editor editor = handleOpen (file , true );
751+ handleOpen (file , true );
752752 }
753753
754754 } catch (IOException e ) {
Original file line number Diff line number Diff line change @@ -53,11 +53,6 @@ public class SketchCode {
5353
5454 private boolean modified ;
5555
56- /**
57- * where this code starts relative to the concat'd code
58- */
59- private int preprocOffset ;
60-
6156 private Object metadata ;
6257
6358 public SketchCode (File file ) {
@@ -190,16 +185,6 @@ public boolean isModified() {
190185 }
191186
192187
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-
203188 /**
204189 * Load this piece of code from a file.
205190 */
You can’t perform that action at this time.
0 commit comments