Skip to content

Commit 16fbdf2

Browse files
Remove Editor.findTabIndex(String), which is now unused
1 parent 41f2816 commit 16fbdf2

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

app/src/processing/app/Editor.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,22 +1661,6 @@ public int findTabIndex(final SketchCode doc) {
16611661
return -1;
16621662
}
16631663

1664-
/**
1665-
* Finds the tab that shows the given file (as returned by
1666-
* SketchCode.getFileName() or SketchCode.getPrettyName()).
1667-
*/
1668-
public int findTabIndex(final String name) {
1669-
int i = 0;
1670-
for (EditorTab tab : tabs) {
1671-
SketchCode code = tab.getSketchCode();
1672-
if (name.equals(code.getFileName()) ||
1673-
name.equals(code.getPrettyName())) {
1674-
return i;
1675-
}
1676-
}
1677-
return -1;
1678-
}
1679-
16801664
/**
16811665
* Create tabs for each of the current sketch's files, removing any existing
16821666
* tabs.

0 commit comments

Comments
 (0)