[asterisk-commits] rizzo: trunk r46696 - /trunk/channels/chan_iax2.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Oct 31 11:10:21 MST 2006


Author: rizzo
Date: Tue Oct 31 12:10:21 2006
New Revision: 46696

URL: http://svn.digium.com/view/asterisk?rev=46696&view=rev
Log:
remove old/useless usecount handling


Modified:
    trunk/channels/chan_iax2.c

Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?rev=46696&r1=46695&r2=46696&view=diff
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Tue Oct 31 12:10:21 2006
@@ -181,8 +181,6 @@
 
 static struct ast_netsock_list *netsock;
 static int defaultsockfd = -1;
-
-static int usecnt = 0;
 
 int (*iax2_regfunk)(const char *username, int onoff) = NULL;
 
@@ -1701,8 +1699,6 @@
 		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 @@
 	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;
 }
 



More information about the asterisk-commits mailing list