From: Michael D. Lowis Date: Mon, 10 Jul 2017 12:37:23 +0000 (-0400) Subject: removed unused function from x11.c X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=391f68f6fef74672ef0974a9475cfb77fba73873;p=projs%2Ftide.git removed unused function from x11.c --- 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;