summaryrefslogtreecommitdiffstats
path: root/pokemodr/models/MapEffectModel.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-20 22:24:45 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-20 22:24:45 +0000
commitd910d8ec38e0c33eeb32b7ceaaea9b40632cbd17 (patch)
treea2fd6b050b2eea3bf26e6d04121e07a478ca5d16 /pokemodr/models/MapEffectModel.cpp
parent8ac53af4a15a59b8f6adf7a2468a1bd90a7cc549 (diff)
downloadsigen-d910d8ec38e0c33eeb32b7ceaaea9b40632cbd17.tar.gz
sigen-d910d8ec38e0c33eeb32b7ceaaea9b40632cbd17.tar.xz
sigen-d910d8ec38e0c33eeb32b7ceaaea9b40632cbd17.zip
[FIX] Models cleaned up (each class is now in its own file, parenting not hard-coded, etc.)
[FIX] Tree bug fixed! :) git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@157 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/models/MapEffectModel.cpp')
-rw-r--r--pokemodr/models/MapEffectModel.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/pokemodr/models/MapEffectModel.cpp b/pokemodr/models/MapEffectModel.cpp
index d9b49edd..208a5c62 100644
--- a/pokemodr/models/MapEffectModel.cpp
+++ b/pokemodr/models/MapEffectModel.cpp
@@ -76,8 +76,3 @@ bool MapEffectModel::setData(const QVariant& value, int role)
}
return false;
}
-
-int MapEffectModel::indexNumber() const
-{
- return static_cast<const Map*>(m_object->parent())->effectIndex(m_object->id());
-}