aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-09 12:56:57 +0100
committerMax Kellermann <max@duempel.org>2014-01-09 12:56:57 +0100
commit735241f04922f9d666bf76dd003d2a6b03096f31 (patch)
treedcd550a5eb3ae4ddf8e396cf4b4dfbc103b1e958 /src
parentdd82370a80c25322823bade6c9c76845b51eaa71 (diff)
downloadmpd-735241f04922f9d666bf76dd003d2a6b03096f31.tar.gz
mpd-735241f04922f9d666bf76dd003d2a6b03096f31.tar.xz
mpd-735241f04922f9d666bf76dd003d2a6b03096f31.zip
Timer: remove unused method Synchronize()
Diffstat (limited to '')
-rw-r--r--src/Timer.cxx13
-rw-r--r--src/Timer.hxx2
2 files changed, 0 insertions, 15 deletions
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 <glib.h>
-
#include <limits>
#include <assert.h>
@@ -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