From 735241f04922f9d666bf76dd003d2a6b03096f31 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 9 Jan 2014 12:56:57 +0100 Subject: Timer: remove unused method Synchronize() --- src/Timer.cxx | 13 ------------- src/Timer.hxx | 2 -- 2 files changed, 15 deletions(-) (limited to 'src') diff --git a/src/Timer.cxx b/src/Timer.cxx index a132977f1..f6f5cffc2 100644 --- a/src/Timer.cxx +++ b/src/Timer.cxx @@ -22,8 +22,6 @@ #include "AudioFormat.hxx" #include "system/Clock.hxx" -#include - #include #include @@ -67,14 +65,3 @@ unsigned Timer::GetDelay() const return delay; } - -void Timer::Synchronize() const -{ - int64_t sleep_duration; - - assert(started); - - sleep_duration = time - MonotonicClockUS(); - if (sleep_duration > 0) - g_usleep(sleep_duration); -} diff --git a/src/Timer.hxx b/src/Timer.hxx index c8b756e9c..96e25b27a 100644 --- a/src/Timer.hxx +++ b/src/Timer.hxx @@ -42,8 +42,6 @@ public: * Returns the number of milliseconds to sleep to get back to sync. */ unsigned GetDelay() const; - - void Synchronize() const; }; #endif -- cgit v1.2.3