From 391f68f6fef74672ef0974a9475cfb77fba73873 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Mon, 10 Jul 2017 08:37:23 -0400 Subject: [PATCH] removed unused function from x11.c --- inc/x11.h | 1 - lib/x11.c | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/inc/x11.h b/inc/x11.h index fdda96b..06a8a7e 100644 --- a/inc/x11.h +++ b/inc/x11.h @@ -128,7 +128,6 @@ void x11_flush(void); void x11_finish(void); int x11_events_queued(void); -bool x11_events_await(unsigned int ms); void x11_events_take(void); void x11_mouse_get(int* x, int* y); diff --git a/lib/x11.c b/lib/x11.c index 3df97cb..f26b52d 100644 --- a/lib/x11.c +++ b/lib/x11.c @@ -344,16 +344,6 @@ int x11_events_queued(void) { return XEventsQueued(X.display, QueuedAfterFlush); } -bool x11_events_await(unsigned int ms) { - fd_set fds; - int xfd = ConnectionNumber(X.display), redraw = 1; - /* configure for 100ms timeout */ - struct timeval tv = { .tv_usec = ms * 1000 }; - FD_ZERO(&fds); - FD_SET(xfd, &fds); - return (select(xfd+1, &fds, NULL, NULL, &tv) > 0); -} - void x11_events_take(void) { XEvent e; int nevents; -- 2.49.0