From 3d8a3b5c0be10223453ea2459b5a7ae6581e5047 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 2 Apr 2014 22:03:27 +0200 Subject: [PATCH] android/hal-audio: Remove unused timespec_diff function --- android/hal-audio.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/android/hal-audio.c b/android/hal-audio.c index cd2c0a439..23eb6b88c 100644 --- a/android/hal-audio.c +++ b/android/hal-audio.c @@ -135,18 +135,6 @@ struct sbc_data { unsigned frames_per_packet; }; -static inline void timespec_diff(struct timespec *a, struct timespec *b, - struct timespec *res) -{ - res->tv_sec = a->tv_sec - b->tv_sec; - res->tv_nsec = a->tv_nsec - b->tv_nsec; - - if (res->tv_nsec < 0) { - res->tv_sec--; - res->tv_nsec += 1000000000; /* 1sec */ - } -} - static void timespec_add(struct timespec *base, uint64_t time_us, struct timespec *res) { -- 2.47.3