]> git.mdlowis.com Git - projs/tide.git/commitdiff
removed unused function from x11.c
authorMichael D. Lowis <mike.lowis@gentex.com>
Mon, 10 Jul 2017 12:37:23 +0000 (08:37 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Mon, 10 Jul 2017 12:37:23 +0000 (08:37 -0400)
inc/x11.h
lib/x11.c

index fdda96b72a43309a557fa05f72abee0fe8d6bf69..06a8a7e5884536cade3c80e2b70bc66b4e37039e 100644 (file)
--- 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);
index 3df97cb4d002e8564aa51766138ca25ed6194361..f26b52d48a42ed40fc1287ca9f6e0372446ff472 100644 (file)
--- 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;