Simplified the code.

This commit is contained in:
fendrin 2013-05-19 00:56:14 +02:00
parent a1a62c2c9c
commit 90e792b6f8

View File

@ -201,12 +201,7 @@ void tod_manager::replace_schedule(const config& time_cfg)
void tod_manager::replace_schedule(const std::vector<time_of_day>& schedule)
{
times_.clear();
BOOST_FOREACH(const time_of_day& time, schedule) {
config cfg;
time.write(cfg);
times_.push_back(time_of_day(cfg));
}
times_ = schedule;
currentTime_ = 0;
}