mirror of https://github.com/Icinga/icinga2.git
Remove dead code
Remove some dead code in ScheduledDowntime::CreateNextDowntime().
This commit is contained in:
parent
f3f402fa7e
commit
ce6ab9a948
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue