Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Mar 2, 2015
1 parent 54d0835 commit 435accc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
19 changes: 3 additions & 16 deletions src/replay.cpp
Expand Up @@ -332,16 +332,6 @@ void replay::add_log_data(const std::string &category, const std::string &key, c
cat.add_child(key,c);
}

void replay::add_checksum_check(const map_location& loc)
{
if(! game_config::mp_debug || ! (resources::units->find(loc).valid()) ) {
return;
}
config& cmd = add_command();
cmd["dependent"] = true;
add_unit_checksum(loc,cmd);
}

void replay::add_chat_message_location()
{
message_locations.push_back(pos_-1);
Expand Down Expand Up @@ -472,7 +462,7 @@ void replay::undo_cut(config& dst)
{
//"undo"=no means speak/label/remove_label, especialy attack, recruits etc. have "undo"=yes
//"async"=yes means rename_unit
//"dependent"=true means user input or unit_checksum_check
//"dependent"=true means user input
config &c = command(cmd);
const config &cc = c;
if (cc["dependent"].to_bool(false))
Expand Down Expand Up @@ -722,7 +712,8 @@ REPLAY_RETURN do_replay_handle(bool one_move)
//team &current_team = (*resources::teams)[side_num - 1];

const int side_num = resources::controller->current_side();
for(;;) {
while(true)
{
const config *cfg = get_replay_source().get_next_action();
const bool is_synced = (synced_context::get_synced_state() == synced_context::SYNCED);

Expand Down Expand Up @@ -851,10 +842,6 @@ REPLAY_RETURN do_replay_handle(bool one_move)
(*resources::teams)[tval - 1].set_countdown_time(val);
}
}
else if ( cfg->child("checksum") )
{
check_checksums(*cfg);
}
else if ((*cfg)["dependent"].to_bool(false))
{
if(!is_synced)
Expand Down
1 change: 0 additions & 1 deletion src/replay.hpp
Expand Up @@ -75,7 +75,6 @@ class replay
void add_rename(const std::string& name, const map_location& loc);
void end_turn();
void add_unit_checksum(const map_location& loc,config& cfg);
void add_checksum_check(const map_location& loc);
void add_log_data(const std::string &key, const std::string &var);
void add_log_data(const std::string &category, const std::string &key, const std::string &var);
void add_log_data(const std::string &category, const std::string &key, const config& c);
Expand Down

0 comments on commit 435accc

Please sign in to comment.