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
This commit is contained in:
uau 2007-08-18 05:32:45 +00:00
parent 5bcba9c99d
commit 730a647a2a
1 changed files with 0 additions and 10 deletions

View File

@ -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;
}