From 41dab7336a84e1960c7565ff9c8bb457296d22dd Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 13 Aug 2014 13:28:32 +0200 Subject: [PATCH] Remove unsed functuion pazpar2_sleep --- src/eventl.c | 19 ------------------- src/eventl.h | 2 -- 2 files changed, 21 deletions(-) diff --git a/src/eventl.c b/src/eventl.c index f0c51df..2808c07 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -36,14 +36,7 @@ #include #include -#ifdef WIN32 -#include -#else #include -#endif -#if HAVE_SYS_TIME_H -#include -#endif #include #include @@ -400,18 +393,6 @@ void iochan_man_events(iochan_man_t man) event_loop(man, &man->channel_list); } -void pazpar2_sleep(double d) -{ -#ifdef WIN32 - Sleep( (DWORD) (d * 1000)); -#else - struct timeval tv; - tv.tv_sec = floor(d); - tv.tv_usec = (d - floor(d)) * 1000000; - select(0, 0, 0, 0, &tv); -#endif -} - /* * Local variables: * c-basic-offset: 4 diff --git a/src/eventl.h b/src/eventl.h index 5e46eca..b320078 100644 --- a/src/eventl.h +++ b/src/eventl.h @@ -69,8 +69,6 @@ void iochan_man_destroy(iochan_man_t *mp); IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags, const char *name); -void pazpar2_sleep(double d); - #endif /* * Local variables: -- 1.7.10.4