changeset 24070:bf7545ebc044

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.
author uau
date Sat, 18 Aug 2007 05:32:45 +0000
parents 4271e4e580e4
children e8aa0449e8fd
files mplayer.c
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Fri Aug 17 08:39:39 2007 +0000
+++ b/mplayer.c	Sat Aug 18 05:32:45 2007 +0000
@@ -1652,15 +1652,6 @@
 	}
     } 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 @@
 		time_frame-=GetRelativeTime(); // burn the CPU
 	}
     }
-#endif /* SYS_DARWIN */
     return time_frame;
 }