diff --git a/aegisub/src/base_grid.cpp b/aegisub/src/base_grid.cpp index 95cf95c8a..24695c0d6 100644 --- a/aegisub/src/base_grid.cpp +++ b/aegisub/src/base_grid.cpp @@ -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()); diff --git a/aegisub/src/base_grid.h b/aegisub/src/base_grid.h index b022b53a3..6e8c4bdca 100644 --- a/aegisub/src/base_grid.h +++ b/aegisub/src/base_grid.h @@ -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();