diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-30 07:07:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:23 -0500 |
commit | 791426317cd00355f2199e049949ee877c94d229 (patch) | |
tree | 3e83b3aff1d321209a7e2088b89ec32230003e1a /source4/lib/events.c | |
parent | 1447b9a8c135ddc8d369be9ab970a4cccf4ecf0e (diff) | |
download | samba-791426317cd00355f2199e049949ee877c94d229.tar.gz samba-791426317cd00355f2199e049949ee877c94d229.tar.bz2 samba-791426317cd00355f2199e049949ee877c94d229.zip |
r5105: removed some unused events functions. These are no longer needed as
destructors are used to remove pending socket events
(This used to be commit ce62105434ab02e94e38897409c3512905c48f02)
Diffstat (limited to 'source4/lib/events.c')
-rw-r--r-- | source4/lib/events.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/source4/lib/events.c b/source4/lib/events.c index c09d9b5030..98c2b9cfa8 100644 --- a/source4/lib/events.c +++ b/source4/lib/events.c @@ -150,36 +150,6 @@ struct fd_event *event_add_fd(struct event_context *ev, struct fd_event *e0, } -/* - remove all fd based events that match a specified fd -*/ -void event_remove_fd_all(struct event_context *ev, int fd) -{ - struct fd_event *e = ev->fd_events; - /* be careful to cope with extra reference counts on events */ - while (e) { - if (talloc_free(ev->fd_events) == 0) { - e = ev->fd_events; - } else { - e = e->next; - } - } -} - -/* - remove all fd based events that match a specified handler -*/ -void event_remove_fd_all_handler(struct event_context *ev, void *handler) -{ - struct fd_event *e, *next; - for (e=ev->fd_events; e; e=next) { - next = e->next; - if (handler == (void *)e->handler) { - talloc_free(e); - } - } -} - static int event_timed_destructor(void *ptr) { struct timed_event *te = talloc_get_type(ptr, struct timed_event); |