mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 12:39:55 +00:00
Merge branch 'deadcode' into 'master'
Remove dead code See merge request OpenMW/openmw!1537
This commit is contained in:
commit
b56406b0ad
@ -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
|
EffectParam MagicEffects::get (const EffectKey& key) const
|
||||||
{
|
{
|
||||||
Collection::const_iterator iter = mCollection.find (key);
|
Collection::const_iterator iter = mCollection.find (key);
|
||||||
|
@ -97,8 +97,6 @@ namespace MWMechanics
|
|||||||
/// Copy Modifier values from \a effects, but keep original mBase values.
|
/// Copy Modifier values from \a effects, but keep original mBase values.
|
||||||
void setModifiers(const MagicEffects& effects);
|
void setModifiers(const MagicEffects& effects);
|
||||||
|
|
||||||
MagicEffects& operator+= (const MagicEffects& effects);
|
|
||||||
|
|
||||||
EffectParam get (const EffectKey& key) const;
|
EffectParam get (const EffectKey& key) const;
|
||||||
///< This function can safely be used for keys that are not present.
|
///< This function can safely be used for keys that are not present.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user