rtp_proxy: Remove dead code

commit 65be6de155 removed the RTP
timesetamp mangling and thus the only caller to tv_difference(),
which can now be removed, too.
This commit is contained in:
Harald Welte 2015-01-01 12:20:21 +01:00
parent c3e66ff5c3
commit 7b129e76ce
1 changed files with 0 additions and 15 deletions

View File

@ -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