mirror of https://github.com/odrling/Aegisub
Delete BaseGrid::GetFirstSelRow() since it's no longer used by anything
This commit is contained in:
parent
a40b76ea59
commit
b7e0af6bbb
|
@ -424,20 +424,6 @@ void BaseGrid::SelectRow(int row, bool addToSelected, bool select) {
|
|||
RefreshRect(wxRect(0, (row + 1 - yPos) * lineHeight, w, lineHeight), false);
|
||||
}
|
||||
|
||||
int BaseGrid::GetFirstSelRow() const {
|
||||
if (selection.empty()) return -1;
|
||||
|
||||
Selection::const_iterator it = selection.begin();
|
||||
|
||||
int index = GetDialogueIndex(*it);
|
||||
for (; it != selection.end(); ++it) {
|
||||
int other_index = GetDialogueIndex(*it);
|
||||
if (other_index < index) index = other_index;
|
||||
}
|
||||
|
||||
return index;
|
||||
}
|
||||
|
||||
wxArrayInt BaseGrid::GetSelection() const {
|
||||
wxArrayInt res;
|
||||
res.reserve(selection.size());
|
||||
|
|
|
@ -154,7 +154,6 @@ public:
|
|||
void SetByFrame(bool state);
|
||||
|
||||
void SelectRow(int row, bool addToSelected = false, bool select=true);
|
||||
int GetFirstSelRow() const;
|
||||
wxArrayInt GetSelection() const;
|
||||
|
||||
void ClearMaps();
|
||||
|
|
Loading…
Reference in New Issue