remove useless code (bug #4492)
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 9 Jun 2005 20:43:54 +0000 (20:43 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 9 Jun 2005 20:43:54 +0000 (20:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5885 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c

index f2b03fb..3a4bcae 100755 (executable)
@@ -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);