From 2d0b2464d8247e58f060a4bae7a390b158c43c26 Mon Sep 17 00:00:00 2001 From: Gregory A Lundberg Date: Thu, 26 Oct 2017 19:54:19 -0500 Subject: [PATCH] Suppress warning about const variable Supress CID 1134314 about 'code' being constant. Removed the TODO and dead code. --- src/editor/palette/unit_palette.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/editor/palette/unit_palette.cpp b/src/editor/palette/unit_palette.cpp index 3e9df392c6fd..791e3fe741c8 100644 --- a/src/editor/palette/unit_palette.cpp +++ b/src/editor/palette/unit_palette.cpp @@ -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(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(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(nmax_items_, group_map_["all"].size()); } for(const race_map::value_type &i : unit_types.races()) {