mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
Remove dead code
This commit is contained in:
parent
bafde5c9c4
commit
cd6edb961a
2 changed files with 0 additions and 24 deletions
|
@ -133,28 +133,6 @@ namespace MWMechanics
|
|||
}
|
||||
}
|
||||
|
||||
MagicEffects& MagicEffects::operator+= (const MagicEffects& effects)
|
||||
{
|
||||
if (this==&effects)
|
||||
{
|
||||
const MagicEffects& temp (effects);
|
||||
*this += temp;
|
||||
return *this;
|
||||
}
|
||||
|
||||
for (Collection::const_iterator iter (effects.begin()); iter!=effects.end(); ++iter)
|
||||
{
|
||||
Collection::iterator result = mCollection.find (iter->first);
|
||||
|
||||
if (result!=mCollection.end())
|
||||
result->second += iter->second;
|
||||
else
|
||||
mCollection.insert (*iter);
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
EffectParam MagicEffects::get (const EffectKey& key) const
|
||||
{
|
||||
Collection::const_iterator iter = mCollection.find (key);
|
||||
|
|
|
@ -97,8 +97,6 @@ namespace MWMechanics
|
|||
/// Copy Modifier values from \a effects, but keep original mBase values.
|
||||
void setModifiers(const MagicEffects& effects);
|
||||
|
||||
MagicEffects& operator+= (const MagicEffects& effects);
|
||||
|
||||
EffectParam get (const EffectKey& key) const;
|
||||
///< This function can safely be used for keys that are not present.
|
||||
|
||||
|
|
Loading…
Reference in a new issue