mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-23 21:19:09 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user