From 1fafa76962545e880aea277cf7931c9d4566afc7 Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Tue, 23 Jul 2019 01:29:13 +0200 Subject: [PATCH] remove unused argument --- src/units/types.cpp | 11 +++++------ src/units/types.hpp | 3 +-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/units/types.cpp b/src/units/types.cpp index b446bd9680f3..9722d6d2285d 100644 --- a/src/units/types.cpp +++ b/src/units/types.cpp @@ -224,7 +224,7 @@ void unit_type::build_help_index( } // Make sure we are built to the preceding build level. - build_created(mv_types, races, traits); + build_created(); type_name_ = cfg_["name"]; description_ = cfg_["description"]; @@ -363,8 +363,7 @@ void unit_type::build_help_index( * This creates the gender-specific types (if needed) and also defines how much * experience is needed to advance as well as what this advances to. */ -void unit_type::build_created( - const movement_type_map& mv_types, const race_map& races, const config::const_child_itors& traits) +void unit_type::build_created() { // Don't build twice. if(CREATED <= build_status_) { @@ -389,7 +388,7 @@ void unit_type::build_created( for(unsigned i = 0; i < gender_types_.size(); ++i) { if(gender_types_[i]) { - gender_types_[i]->build_created(mv_types, races, traits); + gender_types_[i]->build_created(); } } @@ -422,7 +421,7 @@ void unit_type::build(BUILD_STATUS status, case CREATED: // Build the basic data. - build_created(movement_types, races, traits); + build_created(); return; case VARIATIONS: // Implemented as part of HELP_INDEXED @@ -1437,7 +1436,7 @@ void unit_type::apply_scenario_fix(const config& cfg) } if(auto attr = cfg.get("add_advancement")) { for(const auto& str : utils::split(attr->str())) { - advances_to_.push_back(str); + advances_to_.push_back(str); } } if(auto attr = cfg.get("remove_advancement")) { diff --git a/src/units/types.hpp b/src/units/types.hpp index 94734fe755ba..14b03b594e71 100644 --- a/src/units/types.hpp +++ b/src/units/types.hpp @@ -82,8 +82,7 @@ class unit_type void build_help_index(const movement_type_map &movement_types, const race_map &races, const config::const_child_itors &traits); /// Load the most needed data into an empty unit_type (build to CREATE). - void build_created(const movement_type_map &movement_types, - const race_map &races, const config::const_child_itors &traits); + void build_created(); typedef std::map variations_map; public: