Skip to content

Commit 5792ec2

Browse files
matthijskooijmanfacchinm
authored andcommitted
Remove Editor.findTabIndex(String), which is now unused
1 parent 8afeb50 commit 5792ec2

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
@@ -1652,22 +1652,6 @@ public int findTabIndex(final SketchCode doc) {
16521652
return -1;
16531653
}
16541654

1655-
/**
1656-
* Finds the tab that shows the given file (as returned by
1657-
* SketchCode.getFileName() or SketchCode.getPrettyName()).
1658-
*/
1659-
public int findTabIndex(final String name) {
1660-
int i = 0;
1661-
for (EditorTab tab : tabs) {
1662-
SketchCode code = tab.getSketchCode();
1663-
if (name.equals(code.getFileName()) ||
1664-
name.equals(code.getPrettyName())) {
1665-
return i;
1666-
}
1667-
}
1668-
return -1;
1669-
}
1670-
16711655
/**
16721656
* Create tabs for each of the current sketch's files, removing any existing
16731657
* tabs.

0 commit comments

Comments
 (0)