summaryrefslogtreecommitdiffstats
path: root/osdep/timer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-18 23:34:23 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:35 +0200
commitb6214b2644148bf68ae781983ed81f972ebc5137 (patch)
tree3b1e6d13446b1341905ce762f737a5e6936841ed /osdep/timer.c
parent1ad027e8fd6df7fd3a96589c30b510568f264627 (diff)
downloadmpv-b6214b2644148bf68ae781983ed81f972ebc5137.tar.bz2
mpv-b6214b2644148bf68ae781983ed81f972ebc5137.tar.xz
timer: remove an unused helper function
It's also dumb.
Diffstat (limited to 'osdep/timer.c')
-rw-r--r--osdep/timer.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/osdep/timer.c b/osdep/timer.c
index f75aec76f3..c624b66e70 100644
--- a/osdep/timer.c
+++ b/osdep/timer.c
@@ -59,16 +59,6 @@ double mp_time_sec(void)
return mp_time_us() / (double)(1000 * 1000);
}
-int64_t mp_time_relative_us(int64_t *t)
-{
- int64_t r = 0;
- int64_t now = mp_time_us();
- if (*t)
- r = now - *t;
- *t = now;
- return r;
-}
-
int64_t mp_add_timeout(int64_t time_us, double timeout_sec)
{
assert(time_us > 0); // mp_time_us() returns strictly positive values