Skip to content
Snippets Groups Projects
Commit 5cfe123d authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

events: remove unused scheduling functions

parent 9f5c1c14
No related branches found
No related tags found
1 merge request!587Events refactoring
......@@ -310,11 +310,6 @@ void _zone_events_schedule_at(zone_t *zone, ...)
va_end(args);
}
bool zone_events_is_scheduled(zone_t *zone, zone_event_type_t type)
{
return zone_events_get_time(zone, type) > 0;
}
void zone_events_enqueue(zone_t *zone, zone_event_type_t type)
{
if (!zone || !valid_event(type)) {
......@@ -340,11 +335,6 @@ void zone_events_enqueue(zone_t *zone, zone_event_type_t type)
zone_events_schedule_at(zone, type, time(NULL));
}
void zone_events_cancel(zone_t *zone, zone_event_type_t type)
{
zone_events_schedule_at(zone, type, 0);
}
void zone_events_freeze(zone_t *zone)
{
if (!zone) {
......
......@@ -118,23 +118,6 @@ void _zone_events_schedule_at(struct zone *zone, ...);
#define zone_events_schedule_now(zone, type) \
zone_events_schedule_at(zone, type, time(NULL))
///*!
// * \brief Check if zone event is scheduled.
// *
// * \param zone Zone to check event of.
// * \param type Type of event.
// */
//bool zone_events_is_scheduled(struct zone *zone, zone_event_type_t type);
///*!
// * \brief Cancel one zone event.
// *
// * \param zone Zone to cancel event in.
// * \param type Type of event to cancel.
// */
//void zone_events_cancel(struct zone *zone, zone_event_type_t type);
/*!
* \brief Freeze all zone events and prevent new events from running.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment