summaryrefslogtreecommitdiffstats
path: root/pokemodr/models/CoinListModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/models/CoinListModel.cpp')
-rw-r--r--pokemodr/models/CoinListModel.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/pokemodr/models/CoinListModel.cpp b/pokemodr/models/CoinListModel.cpp
index 36312ce1..167d9070 100644
--- a/pokemodr/models/CoinListModel.cpp
+++ b/pokemodr/models/CoinListModel.cpp
@@ -60,11 +60,6 @@ QVariant CoinListModel::data(int role) const
return GroupObjectModel::data(role);
}
-int CoinListModel::rowCount() const
-{
- return m_objects.size();
-}
-
bool CoinListModel::setData(const QVariant& value, int role)
{
if (role == BaseModel::XmlRole)
@@ -89,18 +84,6 @@ bool CoinListModel::setData(const QVariant& value, int role)
return false;
}
-BaseModel* CoinListModel::childItem(const int row)
-{
- if (row < m_objects.size())
- return m_objects[row];
- return NULL;
-}
-
-int CoinListModel::indexNumber() const
-{
- return static_cast<const Pokemod*>(m_object->parent())->coinListIndex(m_object->id());
-}
-
bool CoinListModel::insertRows(const int rows)
{
for (int i = 0; i < rows; ++i)
@@ -125,9 +108,3 @@ void CoinListModel::setupData()
for (int i = 0; i < coinList->objectCount(); ++i)
m_objects.append(new CoinListObjectModel(this, coinList->object(i)));
}
-
-void CoinListModel::clearData()
-{
- foreach (CoinListObjectModel* model, m_objects)
- delete model;
-}