diff --git a/lib/icinga/scheduleddowntime.cpp b/lib/icinga/scheduleddowntime.cpp index 7aa4a1c76..75f599524 100644 --- a/lib/icinga/scheduleddowntime.cpp +++ b/lib/icinga/scheduleddowntime.cpp @@ -86,8 +86,6 @@ std::pair ScheduledDowntime::FindNextSegment(void) ObjectLock olock(ranges); BOOST_FOREACH(const Dictionary::Pair& kv, ranges) { - tm rangeref; - Dictionary::Ptr segment = LegacyTimePeriod::FindNextSegment(kv.first, kv.second, &reference); if (!segment)