diff options
-rw-r--r-- | source3/include/event.h | 2 | ||||
-rw-r--r-- | source3/lib/events.c | 16 |
2 files changed, 0 insertions, 18 deletions
diff --git a/source3/include/event.h b/source3/include/event.h index 5d8d294c00..2ede1d89d3 100644 --- a/source3/include/event.h +++ b/source3/include/event.h @@ -64,7 +64,5 @@ void event_context_reinit(struct event_context *ev); struct event_context *event_context_init(TALLOC_CTX *mem_ctx); int set_event_dispatch_time(struct event_context *event_ctx, const char *event_name, struct timeval when); -int cancel_named_event(struct event_context *event_ctx, - const char *event_name); void dump_event_list(struct event_context *event_ctx); diff --git a/source3/lib/events.c b/source3/lib/events.c index 203cfccd14..3f7cc02db8 100644 --- a/source3/lib/events.c +++ b/source3/lib/events.c @@ -379,22 +379,6 @@ int set_event_dispatch_time(struct event_context *event_ctx, return 0; } -/* Returns 1 if event was found and cancelled, 0 otherwise. */ - -int cancel_named_event(struct event_context *event_ctx, - const char *event_name) -{ - struct timed_event *te; - - for (te = event_ctx->timed_events; te; te = te->next) { - if (strcmp(event_name, te->event_name) == 0) { - TALLOC_FREE(te); - return 1; - } - } - return 0; -} - void dump_event_list(struct event_context *event_ctx) { struct timed_event *te; |