Skip to content

Commit

Permalink
Unit: removed unused member
Browse files Browse the repository at this point in the history
Relic from the early days of wesnoth (the line in the header was last touched
11 years ago), but it's unused now.
  • Loading branch information
Vultraz committed Feb 20, 2018
1 parent b5b06f3 commit 68d5a8d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/units/unit.cpp
Expand Up @@ -350,7 +350,6 @@ unit::unit(const unit& o)
, is_healthy_(o.is_healthy_)
, modification_descriptions_(o.modification_descriptions_)
, anim_comp_(new unit_animation_component(*this, *o.anim_comp_))
, getsHit_(o.getsHit_)
, hidden_(o.hidden_)
, hp_bar_scaling_(o.hp_bar_scaling_)
, xp_bar_scaling_(o.xp_bar_scaling_)
Expand Down Expand Up @@ -430,7 +429,6 @@ unit::unit(const config& cfg, bool use_traits, const vconfig* vcfg)
, is_healthy_(false)
, modification_descriptions_()
, anim_comp_(new unit_animation_component(*this))
, getsHit_(0)
, hidden_(cfg["hidden"].to_bool(false))
, hp_bar_scaling_(cfg["hp_bar_scaling"].blank() ? type_->hp_bar_scaling() : cfg["hp_bar_scaling"])
, xp_bar_scaling_(cfg["xp_bar_scaling"].blank() ? type_->xp_bar_scaling() : cfg["xp_bar_scaling"])
Expand Down Expand Up @@ -724,7 +722,6 @@ unit::unit(const unit_type& u_type, int side, bool real_unit, unit_race::GENDER
, is_healthy_(false)
, modification_descriptions_()
, anim_comp_(new unit_animation_component(*this))
, getsHit_(0)
, hidden_(false)
, modifications_()
, abilities_()
Expand Down Expand Up @@ -833,7 +830,6 @@ void unit::swap(unit & o)
swap(is_healthy_, o.is_healthy_);
swap(modification_descriptions_, o.modification_descriptions_);
swap(anim_comp_, o.anim_comp_);
swap(getsHit_, o.getsHit_);
swap(hidden_, o.hidden_);
swap(modifications_, o.modifications_);
swap(invisibility_cache_, o.invisibility_cache_);
Expand Down
1 change: 0 additions & 1 deletion src/units/unit.hpp
Expand Up @@ -1665,7 +1665,6 @@ class unit

std::unique_ptr<unit_animation_component> anim_comp_;

bool getsHit_;
mutable bool hidden_;
double hp_bar_scaling_, xp_bar_scaling_;

Expand Down

0 comments on commit 68d5a8d

Please sign in to comment.