Timer: remove unused method Synchronize()
This commit is contained in:
parent
dd82370a80
commit
735241f049
@ -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
|
|||||||
|
|
||||||
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:
|
|||||||
* 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
|
||||||
|
Loading…
Reference in New Issue
Block a user