- time_t current = ServerInstance->Time();
-
- /* Because we now store all our XLines in sorted order using ((*i)->duration + (*i)->set_time) as a key, this
- * means that to expire the XLines we just need to do a while, picking off the top few until there are
- * none left at the head of the queue that are after the current time. We use PermLines as an offset into the
- * vector past the first item with a duration 0.
- */
-
- std::vector<XLine*>::iterator start = active_lines.begin() + PermLines;
-
- while ((start < active_lines.end()) && (current > (*start)->expiry))
- {
- (*start)->DisplayExpiry();
- (*start)->Unset();
-
- if (lookup_lines.find((*start)->type) != lookup_lines.end())
- lookup_lines[(*start)->type].erase((*start)->Displayable());