remove old/useless usecount handling
authorLuigi Rizzo <rizzo@icir.org>
Tue, 31 Oct 2006 18:10:21 +0000 (18:10 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 31 Oct 2006 18:10:21 +0000 (18:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46696 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index e675b3e..b8fd51e 100644 (file)
@@ -182,8 +182,6 @@ static int timingfd = -1;                           /* Timing file descriptor */
 static struct ast_netsock_list *netsock;
 static int defaultsockfd = -1;
 
-static int usecnt = 0;
-
 int (*iax2_regfunk)(const char *username, int onoff) = NULL;
 
 /* Ethernet, etc */
@@ -1701,8 +1699,6 @@ static int iax2_predestroy(int callno)
                c->tech_pvt = NULL;
                ast_queue_hangup(c);
                pvt->owner = NULL;
-               ast_atomic_fetchadd_int(&usecnt, -1);
-               ast_update_use_count();
        }
 
        return 0;
@@ -3321,9 +3317,6 @@ static struct ast_channel *ast_iax2_new(int callno, int state, int capability)
        for (v = i->vars ; v ; v = v->next)
                pbx_builtin_setvar_helper(tmp, v->name, v->value);
 
-       ast_atomic_fetchadd_int(&usecnt, 1);
-       ast_update_use_count();
-       
        return tmp;
 }