Removed unused function attack_type::has_special_by_id.

This commit is contained in:
Guillaume Melquiond 2009-08-15 14:20:29 +00:00
parent 30e688bf4b
commit 9a26bfa344
2 changed files with 0 additions and 13 deletions

View file

@ -273,17 +273,6 @@ bool attack_type::describe_modification(const config& cfg,std::string* descripti
return true;
}
bool attack_type::has_special_by_id(const std::string& special) const
{
if (const config &abil = cfg_.child("specials"))
{
foreach (const config::any_child &ab, abil.all_children_range()) {
if (ab.cfg["id"] == special)
return true;
}
}
return false;
}
unit_movement_type::unit_movement_type(const config& cfg, const unit_movement_type* parent) :
moveCosts_(),

View file

@ -61,8 +61,6 @@ public:
const unit_map &unitmap, bool attacker, const attack_type *other_attack) const;
void set_specials_context(const map_location& loc,const map_location& dloc, const unit& un, bool attacker =true) const;
bool has_special_by_id(const std::string& special) const;
bool matches_filter(const config& cfg,bool self=false) const;
bool apply_modification(const config& cfg,std::string* description);
bool describe_modification(const config& cfg,std::string* description);