mail[Wesnoth-commits] r52814 - /trunk/src/actions.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on January 30, 2012 - 19:35:
Author: mordante
Date: Mon Jan 30 19:35:17 2012
New Revision: 52814

URL: http://svn.gna.org/viewcvs/wesnoth?rev=52814&view=rev
Log:
Remove a variable which is only assigned.

Issue found by cppcheck.

Modified:
    trunk/src/actions.cpp

Modified: trunk/src/actions.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions.cpp?rev=52814&r1=52813&r2=52814&view=diff
==============================================================================
--- trunk/src/actions.cpp (original)
+++ trunk/src/actions.cpp Mon Jan 30 19:35:17 2012
@@ -1778,8 +1778,6 @@
        const int attacker_side = a_.get_unit().side();
        const int defender_side = d_.get_unit().side();
 
-       static const std::string poison_string("poison");
-
        LOG_NG << "Fight: (" << a_.loc_ << ") vs (" << d_.loc_ << ") ATT: " 
<< a_stats_->weapon->name() << " " << a_stats_->damage << "-" << 
a_stats_->num_blows << "(" << a_stats_->chance_to_hit << "%) vs DEF: " << 
(d_stats_->weapon ? d_stats_->weapon->name() : "none") << " " << 
d_stats_->damage << "-" << d_stats_->num_blows << "(" << 
d_stats_->chance_to_hit << "%)" << (defender_strikes_first ? " defender 
first-strike" : "") << "\n";
 
        // Play the pre-fight animation




Related Messages


Powered by MHonArc, Updated Mon Jan 30 19:40:10 2012