unit.cpp: remove unused variable. Found by cppcheck.

[src/units/unit.cpp:2061]: (style) Unused variable: remove_indices
This commit is contained in:
Matthias Krüger 2017-04-06 01:44:21 +02:00 committed by Celtic Minstrel
parent ec6191a68e
commit 165204f159

View File

@ -2058,7 +2058,6 @@ void unit::apply_builtin_effect(std::string apply_to, const config& effect)
} }
temp_advances = utils::parenthetical_split(amlas, ','); temp_advances = utils::parenthetical_split(amlas, ',');
std::vector<size_t> remove_indices;
for(int i = advancements_.size() - 1; i >= 0; i--) { for(int i = advancements_.size() - 1; i >= 0; i--) {
if(std::find(temp_advances.begin(), temp_advances.end(), advancements_[i]["id"]) != temp_advances.end()) { if(std::find(temp_advances.begin(), temp_advances.end(), advancements_[i]["id"]) != temp_advances.end()) {