mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-14 11:29:26 +01:00
Remove Editor.findTabIndex(String)
, which is now unused
This commit is contained in:
parent
8afeb501cb
commit
5792ec212b
@ -1652,22 +1652,6 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
return -1;
|
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
|
* Create tabs for each of the current sketch's files, removing any existing
|
||||||
* tabs.
|
* tabs.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user