Remove dead code

Remove some dead code in ScheduledDowntime::CreateNextDowntime().
This commit is contained in:
Edgar Fuß 2018-10-18 18:09:20 +02:00 committed by Michael Friedrich
parent f3f402fa7e
commit ce6ab9a948
1 changed files with 1 additions and 8 deletions

View File

@ -189,15 +189,8 @@ void ScheduledDowntime::CreateNextDowntime()
std::pair<double, double> segment = FindNextSegment();
if (segment.first == 0 && segment.second == 0) {
tm reference = Utility::LocalTime(Utility::GetTime());
reference.tm_mday++;
reference.tm_hour = 0;
reference.tm_min = 0;
reference.tm_sec = 0;
if (segment.first == 0 && segment.second == 0)
return;
}
String downtimeName = Downtime::AddDowntime(GetCheckable(), GetAuthor(), GetComment(),
segment.first, segment.second,