summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-04 19:53:09 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-05 15:07:34 +0100
commit077d5cff71bdb95f5829ae27309958e4661e4184 (patch)
tree925de7993f8be8b2cc129c639072a2faad5b0fdd
parent492d0e351760458e06452ce948d33f346b3fbb52 (diff)
downloadsamba-077d5cff71bdb95f5829ae27309958e4661e4184.tar.gz
samba-077d5cff71bdb95f5829ae27309958e4661e4184.tar.bz2
samba-077d5cff71bdb95f5829ae27309958e4661e4184.zip
s3:events: remove unused stuff
metze
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/lib/events.c25
2 files changed, 0 insertions, 26 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index a361c62f75..f95038efc0 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -528,7 +528,6 @@ bool event_add_to_select_args(struct event_context *event_ctx,
const struct timeval *now,
fd_set *read_fds, fd_set *write_fds,
struct timeval *timeout, int *maxfd);
-bool events_pending(struct event_context *event_ctx);
bool run_events(struct event_context *event_ctx,
int selrtn, fd_set *read_fds, fd_set *write_fds);
struct timeval *get_timed_events_timeout(struct event_context *event_ctx,
diff --git a/source3/lib/events.c b/source3/lib/events.c
index 7d4cdc209b..0e3fecfaa2 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -44,16 +44,6 @@ struct fd_event {
void *private_data;
};
-#define EVENT_FD_WRITEABLE(fde) \
- event_set_fd_flags(fde, event_get_fd_flags(fde) | EVENT_FD_WRITE)
-#define EVENT_FD_READABLE(fde) \
- event_set_fd_flags(fde, event_get_fd_flags(fde) | EVENT_FD_READ)
-
-#define EVENT_FD_NOT_WRITEABLE(fde) \
- event_set_fd_flags(fde, event_get_fd_flags(fde) & ~EVENT_FD_WRITE)
-#define EVENT_FD_NOT_READABLE(fde) \
- event_set_fd_flags(fde, event_get_fd_flags(fde) & ~EVENT_FD_READ)
-
struct event_context {
struct timed_event *timed_events;
struct fd_event *fd_events;
@@ -225,21 +215,6 @@ bool event_add_to_select_args(struct event_context *event_ctx,
return True;
}
-bool events_pending(struct event_context *event_ctx)
-{
- struct fd_event *fde;
-
- if (event_ctx->timed_events != NULL) {
- return True;
- }
- for (fde = event_ctx->fd_events; fde; fde = fde->next) {
- if (fde->flags & (EVENT_FD_READ|EVENT_FD_WRITE)) {
- return True;
- }
- }
- return False;
-}
-
bool run_events(struct event_context *event_ctx,
int selrtn, fd_set *read_fds, fd_set *write_fds)
{