aboutsummaryrefslogtreecommitdiffstats
path: root/src/Timer.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Timer.cxx17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/Timer.cxx b/src/Timer.cxx
index 661aa29ee..d3dcc714d 100644
--- a/src/Timer.cxx
+++ b/src/Timer.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -22,13 +22,9 @@
#include "AudioFormat.hxx"
#include "system/Clock.hxx"
-#include <glib.h>
-
#include <limits>
#include <assert.h>
-#include <limits.h>
-#include <stddef.h>
Timer::Timer(const AudioFormat af)
: time(0),
@@ -69,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);
-}