remove unused function

This commit is contained in:
gfgtdf 2015-03-02 00:28:49 +01:00
parent 54d08359cf
commit 435accc615
2 changed files with 3 additions and 17 deletions

View file

@ -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);
@ -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))
@ -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);
@ -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)

View file

@ -75,7 +75,6 @@ public:
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);