remove old/useless usecount handling

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2006-10-31 18:10:21 +00:00
parent e72c0db882
commit bf3afe5641

View 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;
}