1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-18 12:54:25 +01:00

Removed a bunch of unused variables

This commit is contained in:
Cristian Maglie 2015-10-20 18:38:34 +02:00
parent 869137469c
commit 9f5efe210a
3 changed files with 1 additions and 19 deletions

View File

@ -13,7 +13,6 @@ import java.awt.event.WindowEvent;
@SuppressWarnings("serial")
public abstract class AbstractMonitor extends JFrame implements ActionListener {
private boolean monitorEnabled;
private boolean closed;
private StringBuffer updateBuffer;
@ -78,7 +77,6 @@ public abstract class AbstractMonitor extends JFrame implements ActionListener {
updateTimer = new Timer(33, this); // redraw serial monitor at 30 Hz
updateTimer.start();
monitorEnabled = true;
closed = false;
}
@ -86,7 +84,6 @@ public abstract class AbstractMonitor extends JFrame implements ActionListener {
public void enableWindow(boolean enable) {
onEnableWindow(enable);
monitorEnabled = enable;
}
protected abstract void onEnableWindow(boolean enable);

View File

@ -748,7 +748,7 @@ public class Base {
try {
File file = createNewUntitled();
if (file != null) {
Editor editor = handleOpen(file, true);
handleOpen(file, true);
}
} catch (IOException e) {

View File

@ -53,11 +53,6 @@ public class SketchCode {
private boolean modified;
/**
* where this code starts relative to the concat'd code
*/
private int preprocOffset;
private Object metadata;
public SketchCode(File file) {
@ -190,16 +185,6 @@ public class SketchCode {
}
public void setPreprocOffset(int preprocOffset) {
this.preprocOffset = preprocOffset;
}
public void addPreprocOffset(int extra) {
preprocOffset += extra;
}
/**
* Load this piece of code from a file.
*/