Delete BaseGrid::GetFirstSelRow() since it's no longer used by anything

This commit is contained in:
Thomas Goyne 2012-10-14 08:22:13 -07:00
parent a40b76ea59
commit b7e0af6bbb
2 changed files with 0 additions and 15 deletions

View File

@ -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());

View File

@ -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();