summaryrefslogtreecommitdiff
path: root/android/hal-audio.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@gmail.com>2014-04-02 22:03:27 +0200
committerSzymon Janc <szymon.janc@gmail.com>2014-04-03 21:56:13 +0200
commit3d8a3b5c0be10223453ea2459b5a7ae6581e5047 (patch)
treeb17aaa85e2f504956e5ef57acc85b60df8276ffd /android/hal-audio.c
parent38abe4d81102294352818428533e966922237cbc (diff)
downloadbluez-3d8a3b5c0be10223453ea2459b5a7ae6581e5047.tar.gz
android/hal-audio: Remove unused timespec_diff function
Diffstat (limited to 'android/hal-audio.c')
-rw-r--r--android/hal-audio.c12
1 files changed, 0 insertions, 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)
{