From 730a647a2a30126d2a81e8adfce3e0b36ec8ef2d Mon Sep 17 00:00:00 2001 From: uau Date: Sat, 18 Aug 2007 05:32:45 +0000 Subject: Remove an unnecessary #ifdef The default version of the sleep timer no longer has the code which required adding a different #ifdef SYS_DARWIN version, so remove the Darwin implementation. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24090 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mplayer.c b/mplayer.c index ba8c1bba83..075201ead4 100644 --- a/mplayer.c +++ b/mplayer.c @@ -1652,15 +1652,6 @@ static float timing_sleep(float time_frame) } } else #endif -#ifdef SYS_DARWIN - { - current_module = "sleep_darwin"; - while (time_frame > 0.005) { - usec_sleep(1000000*time_frame); - time_frame -= GetRelativeTime(); - } - } -#else { // assume kernel HZ=100 for softsleep, works with larger HZ but with // unnecessarily high CPU usage @@ -1678,7 +1669,6 @@ static float timing_sleep(float time_frame) time_frame-=GetRelativeTime(); // burn the CPU } } -#endif /* SYS_DARWIN */ return time_frame; } -- cgit v1.2.3