1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3:events: remove unused stuff

metze
This commit is contained in:
Stefan Metzmacher 2009-01-04 19:53:09 +01:00
parent 492d0e3517
commit 077d5cff71
2 changed files with 0 additions and 26 deletions

View File

@ -528,7 +528,6 @@ bool event_add_to_select_args(struct event_context *event_ctx,
const struct timeval *now, const struct timeval *now,
fd_set *read_fds, fd_set *write_fds, fd_set *read_fds, fd_set *write_fds,
struct timeval *timeout, int *maxfd); struct timeval *timeout, int *maxfd);
bool events_pending(struct event_context *event_ctx);
bool run_events(struct event_context *event_ctx, bool run_events(struct event_context *event_ctx,
int selrtn, fd_set *read_fds, fd_set *write_fds); int selrtn, fd_set *read_fds, fd_set *write_fds);
struct timeval *get_timed_events_timeout(struct event_context *event_ctx, struct timeval *get_timed_events_timeout(struct event_context *event_ctx,

View File

@ -44,16 +44,6 @@ struct fd_event {
void *private_data; 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 event_context {
struct timed_event *timed_events; struct timed_event *timed_events;
struct fd_event *fd_events; struct fd_event *fd_events;
@ -225,21 +215,6 @@ bool event_add_to_select_args(struct event_context *event_ctx,
return True; 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, bool run_events(struct event_context *event_ctx,
int selrtn, fd_set *read_fds, fd_set *write_fds) int selrtn, fd_set *read_fds, fd_set *write_fds)
{ {