svn commit: samba r5105 - in branches/SAMBA_4_0/source/lib: .

tridge at samba.org tridge at samba.org
Sun Jan 30 07:07:12 GMT 2005


Author: tridge
Date: 2005-01-30 07:07:11 +0000 (Sun, 30 Jan 2005)
New Revision: 5105

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5105

Log:
removed some unused events functions. These are no longer needed as
destructors are used to remove pending socket events


Modified:
   branches/SAMBA_4_0/source/lib/events.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/events.c
===================================================================
--- branches/SAMBA_4_0/source/lib/events.c	2005-01-30 02:55:30 UTC (rev 5104)
+++ branches/SAMBA_4_0/source/lib/events.c	2005-01-30 07:07:11 UTC (rev 5105)
@@ -150,36 +150,6 @@
 }
 
 
-/*
-  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);



More information about the samba-cvs mailing list