Suppress warning about const variable
Supress CID 1134314 about 'code' being constant. Removed the TODO and dead code.
This commit is contained in:
parent
9ea059529c
commit
2d0b2464d8
1 changed files with 3 additions and 9 deletions
|
@ -39,15 +39,9 @@ void unit_palette::setup(const config& /*cfg*/)
|
|||
item_map_.emplace(i.second.id(), i.second);
|
||||
group_map_[i.second.race_id()].push_back(i.second.id());
|
||||
nmax_items_ = std::max<int>(nmax_items_, group_map_[i.second.race_id()].size());
|
||||
// TODO: Implement the concept of "core" units
|
||||
bool core = true;
|
||||
if(core) {
|
||||
// Add the unit to the default group
|
||||
group_map_["all"].push_back(i.second.id());
|
||||
nmax_items_ = std::max<int>(nmax_items_, group_map_["all"].size());
|
||||
} else {
|
||||
non_core_items_.insert(i.second.id());
|
||||
}
|
||||
// Add the unit to the default group
|
||||
group_map_["all"].push_back(i.second.id());
|
||||
nmax_items_ = std::max<int>(nmax_items_, group_map_["all"].size());
|
||||
}
|
||||
|
||||
for(const race_map::value_type &i : unit_types.races()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue