Commit 735241f0 authored by Max Kellermann's avatar Max Kellermann

Timer: remove unused method Synchronize()

parent dd82370a
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "system/Clock.hxx" #include "system/Clock.hxx"
#include <glib.h>
#include <limits> #include <limits>
#include <assert.h> #include <assert.h>
...@@ -67,14 +65,3 @@ unsigned Timer::GetDelay() const ...@@ -67,14 +65,3 @@ unsigned Timer::GetDelay() const
return delay; return delay;
} }
void Timer::Synchronize() const
{
int64_t sleep_duration;
assert(started);
sleep_duration = time - MonotonicClockUS();
if (sleep_duration > 0)
g_usleep(sleep_duration);
}
...@@ -42,8 +42,6 @@ public: ...@@ -42,8 +42,6 @@ public:
* Returns the number of milliseconds to sleep to get back to sync. * Returns the number of milliseconds to sleep to get back to sync.
*/ */
unsigned GetDelay() const; unsigned GetDelay() const;
void Synchronize() const;
}; };
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment