From: Adam Dickmeiss Date: Wed, 13 Aug 2014 11:28:32 +0000 (+0200) Subject: Remove unsed functuion pazpar2_sleep X-Git-Tag: v1.7.1~7 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=41dab7336a84e1960c7565ff9c8bb457296d22dd;p=pazpar2-moved-to-github.git Remove unsed functuion pazpar2_sleep --- 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: