aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-01-01 12:20:21 +0100
committerHarald Welte <laforge@gnumonks.org>2015-01-01 12:20:21 +0100
commit7b129e76cebee739dc959d70d7c8c257e83c76b1 (patch)
treecf8f553696e9aefcc1f498c6592ee6eff835d571 /openbsc/src
parentc3e66ff5c36e47ca849b4f522d0f845437077076 (diff)
rtp_proxy: Remove dead code
commit 65be6de155407142ddab44faf8aee5f8d5ebf628 removed the RTP timesetamp mangling and thus the only caller to tv_difference(), which can now be removed, too.
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/libtrau/rtp_proxy.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/openbsc/src/libtrau/rtp_proxy.c b/openbsc/src/libtrau/rtp_proxy.c
index 737a24dc0..523f2b449 100644
--- a/openbsc/src/libtrau/rtp_proxy.c
+++ b/openbsc/src/libtrau/rtp_proxy.c
@@ -213,21 +213,6 @@ static int rtp_decode(struct msgb *msg, uint32_t callref, struct msgb **data)
return 0;
}
-/* "to - from" */
-static void tv_difference(struct timeval *diff, const struct timeval *from,
- const struct timeval *__to)
-{
- struct timeval _to = *__to, *to = &_to;
-
- if (to->tv_usec < from->tv_usec) {
- to->tv_sec -= 1;
- to->tv_usec += 1000000;
- }
-
- diff->tv_usec = to->tv_usec - from->tv_usec;
- diff->tv_sec = to->tv_sec - from->tv_sec;
-}
-
/*! \brief encode and send a rtp frame
* \param[in] rs RTP socket through which we shall send
* \param[in] frame GSM RTP frame to be sent