remove unused function
This commit is contained in:
parent
0b1535f286
commit
c13e128f71
2 changed files with 1 additions and 18 deletions
|
@ -17,8 +17,7 @@
|
|||
|
||||
#include "config.hpp"
|
||||
#include "log.hpp"
|
||||
#include "team.hpp"
|
||||
#include "units/unit.hpp"
|
||||
#include "serialization/string_utils.hpp"
|
||||
#include <cassert>
|
||||
|
||||
static lg::log_domain log_engine("engine");
|
||||
|
@ -42,21 +41,6 @@ carryover::carryover(const config& side)
|
|||
}
|
||||
}
|
||||
|
||||
carryover::carryover(const team& t, const int gold, const bool add)
|
||||
: add_ (add)
|
||||
, current_player_(t.current_player())
|
||||
, gold_(gold)
|
||||
, previous_recruits_(t.recruits())
|
||||
, recall_list_()
|
||||
, save_id_(t.save_id())
|
||||
, variables_(t.variables())
|
||||
{
|
||||
for(const unit_const_ptr u : t.recall_list()) {
|
||||
recall_list_.emplace_back();
|
||||
u->write(recall_list_.back());
|
||||
}
|
||||
}
|
||||
|
||||
static const int default_gold_qty = 100;
|
||||
|
||||
void carryover::transfer_all_gold_to(config& side_cfg){
|
||||
|
|
|
@ -36,7 +36,6 @@ public:
|
|||
{}
|
||||
// Turns config from a loaded savegame into carryover_info
|
||||
explicit carryover(const config& side);
|
||||
carryover(const team& t, const int gold, const bool add);
|
||||
~carryover(){}
|
||||
|
||||
const std::string& get_save_id() const{ return save_id_; }
|
||||
|
|
Loading…
Add table
Reference in a new issue