Skip to content

Commit 9f5efe2

Browse files
committed
Removed a bunch of unused variables
1 parent 8691374 commit 9f5efe2

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

app/src/processing/app/AbstractMonitor.java

-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
@SuppressWarnings("serial")
1414
public 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);

app/src/processing/app/Base.java

+1-1
Original file line numberDiff line numberDiff 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) {

arduino-core/src/processing/app/SketchCode.java

-15
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)