Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Jul 9, 2014
1 parent adcc332 commit 5a2d187
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/game_data.cpp
Expand Up @@ -202,9 +202,9 @@ void game_data::write_config(config_writer& out){

team_builder_ptr game_data::create_team_builder(const config& side_cfg,
std::vector<team>& teams,
const config& level, gamemap& map, unit_map& units)
const config& level, gamemap& map)
{
return team_builder_ptr(new team_builder(side_cfg, teams, level, map, units, *this));
return team_builder_ptr(new team_builder(side_cfg, teams, level, map, *this));
}

void game_data::build_team_stage_one(team_builder_ptr tb_ptr)
Expand Down
2 changes: 1 addition & 1 deletion src/game_data.hpp
Expand Up @@ -98,7 +98,7 @@ class game_data : public variable_set {

//create an object responsible for creating and populating a team from a config
team_builder_ptr create_team_builder(const config& side_cfg, std::vector<team>& teams,
const config& level, gamemap& map, unit_map& units);
const config& level, gamemap& map);

//do first stage of team initialization (everything except unit placement)
void build_team_stage_one(team_builder_ptr tb_ptr);
Expand Down
2 changes: 1 addition & 1 deletion src/game_state.cpp
Expand Up @@ -146,7 +146,7 @@ void game_state::init(const int ticks)
}
}
team_builder_ptr tb_ptr = gamedata_.create_team_builder(side,
board_.teams_, level_, *board_.map_, board_.units_);
board_.teams_, level_, *board_.map_);
++team_num;
gamedata_.build_team_stage_one(tb_ptr);
team_builders.push_back(tb_ptr);
Expand Down
4 changes: 1 addition & 3 deletions src/teambuilder.hpp
Expand Up @@ -38,7 +38,7 @@ static lg::log_domain log_engine_tc("engine/team_construction");
class team_builder {
public:
team_builder(const config& side_cfg, std::vector<team>& teams,
const config& level, gamemap& map, unit_map& units,
const config& level, gamemap& map,
game_data & gamedata)
: gold_info_ngold_(0)
, leader_configs_()
Expand All @@ -51,7 +51,6 @@ class team_builder {
, t_(NULL)
, teams_(teams)
, unit_configs_()
, units_(units)
, gamedata_(gamedata)
{
}
Expand Down Expand Up @@ -107,7 +106,6 @@ class team_builder {
team *t_;
std::vector<team> &teams_;
std::vector<const config*> unit_configs_;
unit_map &units_;
game_data & gamedata_;


Expand Down

0 comments on commit 5a2d187

Please sign in to comment.