summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-30 10:00:43 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-05 15:07:35 +0100
commit83ff9d3bcd5cfe9d060a8b1f0695e5b66be47efd (patch)
tree1b4fd3ca67cccd108640dc9fa9050bca5d221f8d /source3
parentf1aa4457c3dd0c3d6654482ff0dc0b3105a9cc35 (diff)
downloadsamba-83ff9d3bcd5cfe9d060a8b1f0695e5b66be47efd.tar.gz
samba-83ff9d3bcd5cfe9d060a8b1f0695e5b66be47efd.tar.bz2
samba-83ff9d3bcd5cfe9d060a8b1f0695e5b66be47efd.zip
s3:events: get rid of the stupid set_event_dispatch_time() function
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/include/event.h2
-rw-r--r--source3/lib/events.c16
2 files changed, 0 insertions, 18 deletions
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;