diff options
Diffstat (limited to 'pokemodr/models/MapWildListModel.cpp')
| -rw-r--r-- | pokemodr/models/MapWildListModel.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/pokemodr/models/MapWildListModel.cpp b/pokemodr/models/MapWildListModel.cpp index 2403efe1..181d0ccd 100644 --- a/pokemodr/models/MapWildListModel.cpp +++ b/pokemodr/models/MapWildListModel.cpp @@ -88,24 +88,6 @@ bool MapWildListModel::setData(const QVariant& value, int role) return false; } -bool MapWildListModel::insertRows(const int rows) -{ - for (int i = 0; i < rows; ++i) - m_objects.append(new MapWildListEncounterModel(this, static_cast<MapWildList*>(m_object)->newEncounter())); - return true; -} - -bool MapWildListModel::removeRows(const int position, const int rows) -{ - for (int i = 0; i < rows; ++i) - { - static_cast<MapWildList*>(m_object)->deleteEncounter(position); - delete m_objects[position]; - m_objects.removeAt(position); - } - return true; -} - void MapWildListModel::setupData() { MapWildList* wildList = static_cast<MapWildList*>(m_object); |
