From: Felix Fietkau Date: Fri, 29 Jul 2016 09:55:01 +0000 (+0200) Subject: trigger: remove unnecessary runqueue empty callback X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1183b6dd0f7bec91aa4adf5b30f62b87146cc9a6;p=oweals%2Fprocd.git trigger: remove unnecessary runqueue empty callback Signed-off-by: Felix Fietkau --- diff --git a/service/trigger.c b/service/trigger.c index 4cfea31..042b3b6 100644 --- a/service/trigger.c +++ b/service/trigger.c @@ -217,10 +217,6 @@ static void rule_handle_error(struct json_script_ctx *ctx, const char *msg, free(s); } -static void q_empty(struct runqueue *q) -{ -} - static void trigger_delay_cb(struct uloop_timeout *tout) { struct trigger *t = container_of(tout, struct trigger, delay); @@ -319,7 +315,6 @@ void trigger_del(void *id) void trigger_init(void) { runqueue_init(&q); - q.empty_cb = q_empty; q.max_running_tasks = 1; }