1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-13 10:29:35 +01:00

Remove Editor.findTabIndex(String), which is now unused

This commit is contained in:
Matthijs Kooijman 2015-12-17 11:49:26 +01:00 committed by Martino Facchin
parent 8afeb501cb
commit 5792ec212b

View File

@ -1652,22 +1652,6 @@ public class Editor extends JFrame implements RunnerListener {
return -1;
}
/**
* Finds the tab that shows the given file (as returned by
* SketchCode.getFileName() or SketchCode.getPrettyName()).
*/
public int findTabIndex(final String name) {
int i = 0;
for (EditorTab tab : tabs) {
SketchCode code = tab.getSketchCode();
if (name.equals(code.getFileName()) ||
name.equals(code.getPrettyName())) {
return i;
}
}
return -1;
}
/**
* Create tabs for each of the current sketch's files, removing any existing
* tabs.