remove useless code (bug #4492)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5885 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-06-09 20:43:54 +00:00
parent 706bf6d427
commit aa0608cb34

View File

@@ -658,18 +658,8 @@ static int retrans_pkt(void *data)
{
struct mgcp_gateway *gw = (struct mgcp_gateway *)data;
struct mgcp_message *cur, *exq = NULL, *w, *prev;
struct timeval tv;
unsigned long t;
int res = 0;
if (gettimeofday(&tv, NULL) < 0) {
/* This shouldn't ever happen, but let's be sure */
ast_log(LOG_NOTICE, "gettimeofday() failed!\n");
return 0;
}
t = tv.tv_sec * 1000 + tv.tv_usec / 1000;
/* find out expired msgs */
ast_mutex_lock(&gw->msgs_lock);