summaryrefslogtreecommitdiff
path: root/src/statuseffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/statuseffect.cpp')
-rw-r--r--src/statuseffect.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp
index 97ce131ab..591b70815 100644
--- a/src/statuseffect.cpp
+++ b/src/statuseffect.cpp
@@ -111,7 +111,6 @@ std::string StatusEffect::getAction() const
typedef std::map<int, StatusEffect *> status_effect_map[2];
static status_effect_map statusEffects;
-static status_effect_map stunEffects;
static std::map<int, int> blockEffectIndexMap;
int StatusEffect::blockEffectIndexToEffectIndex(const int blockIndex)
@@ -138,17 +137,6 @@ StatusEffect *StatusEffect::getStatusEffect(const int index,
return nullptr;
}
-StatusEffect *StatusEffect::getStunEffect(const int index,
- const Enable enabling)
-{
- std::map<int, StatusEffect *> &effects
- = stunEffects[enabling == Enable_true];
- const std::map<int, StatusEffect *>::iterator it = effects.find(index);
- if (it != effects.end())
- return (*it).second;
- return nullptr;
-}
-
void StatusEffect::load()
{
if (mLoaded)
@@ -195,10 +183,6 @@ void StatusEffect::loadXmlFile(const std::string &fileName)
if (index >= 0 && block_index >= 0)
blockEffectIndexMap[block_index] = index;
}
- else if (xmlNameEqual(node, "stun-effect"))
- {
- the_map = &stunEffects;
- }
if (the_map)
{
@@ -268,8 +252,6 @@ void StatusEffect::unload()
unloadMap(statusEffects[0]);
unloadMap(statusEffects[1]);
- unloadMap(stunEffects[0]);
- unloadMap(stunEffects[1]);
mLoaded = false;
}