From 83ff9d3bcd5cfe9d060a8b1f0695e5b66be47efd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 30 Dec 2008 10:00:43 +0100 Subject: s3:events: get rid of the stupid set_event_dispatch_time() function metze --- source3/include/event.h | 2 -- source3/lib/events.c | 16 ---------------- 2 files changed, 18 deletions(-) (limited to 'source3') diff --git a/source3/include/event.h b/source3/include/event.h index 2ede1d89d3..3d40000cb8 100644 --- a/source3/include/event.h +++ b/source3/include/event.h @@ -62,7 +62,5 @@ struct timeval *get_timed_events_timeout(struct event_context *event_ctx, int event_loop_once(struct event_context *ev); 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); void dump_event_list(struct event_context *event_ctx); diff --git a/source3/lib/events.c b/source3/lib/events.c index 3f7cc02db8..9e9d335c7b 100644 --- a/source3/lib/events.c +++ b/source3/lib/events.c @@ -363,22 +363,6 @@ struct event_context *event_context_init(TALLOC_CTX *mem_ctx) return result; } -int set_event_dispatch_time(struct event_context *event_ctx, - const char *event_name, struct timeval when) -{ - struct timed_event *te; - - for (te = event_ctx->timed_events; te; te = te->next) { - if (strcmp(event_name, te->event_name) == 0) { - DLIST_REMOVE(event_ctx->timed_events, te); - te->when = when; - add_event_by_time(te); - return 1; - } - } - return 0; -} - void dump_event_list(struct event_context *event_ctx) { struct timed_event *te; -- cgit