summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-10-22 04:17:03 +0200
committerDudemanguy <random342@airmail.cc>2023-11-05 17:36:17 +0000
commit71e888c2a0f0c816fe87d9b197878fb189adceed (patch)
tree16ce0eb16c315e81fcade268fbf4dc6976b18996 /test
parent751790c2b3171f614576a990f44bf28b7efe4580 (diff)
downloadmpv-71e888c2a0f0c816fe87d9b197878fb189adceed.tar.bz2
mpv-71e888c2a0f0c816fe87d9b197878fb189adceed.tar.xz
timer: remove unused code
Diffstat (limited to 'test')
-rw-r--r--test/timer.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/timer.c b/test/timer.c
index f89fd7e310..f85009c1e7 100644
--- a/test/timer.c
+++ b/test/timer.c
@@ -1,7 +1,6 @@
#include "common/common.h"
#include "osdep/timer.h"
#include "test_utils.h"
-#include "config.h"
#include <time.h>
#include <sys/time.h>
@@ -38,20 +37,5 @@ int main(void)
assert_int_equal(mp_time_ns_add(test2, 20.44), INT64_MAX);
}
-#if !HAVE_WIN32_THREADS
- /* conversion */
- {
- struct timeval tv;
- struct timespec ts;
- gettimeofday(&tv, NULL);
- ts = mp_time_ns_to_realtime(mp_time_ns());
- assert_true(llabs(tv.tv_sec - ts.tv_sec) <= 1);
-
- gettimeofday(&tv, NULL);
- ts = mp_rel_time_to_timespec(0.0);
- assert_true(llabs(tv.tv_sec - ts.tv_sec) <= 1);
- }
-#endif
-
return 0;
}