remove useless usecnt handling
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47073 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
8241a81a86
commit
4675352c5d
|
@ -65,9 +65,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||
|
||||
static const char tdesc[] = "Feature Proxy Channel Driver";
|
||||
|
||||
static int usecnt =0;
|
||||
AST_MUTEX_DEFINE_STATIC(usecnt_lock);
|
||||
|
||||
#define IS_OUTBOUND(a,b) (a == b->chan ? 1 : 0)
|
||||
|
||||
struct feature_sub {
|
||||
|
@ -487,10 +484,6 @@ static struct ast_channel *features_new(struct feature_pvt *p, int state, int in
|
|||
p->subs[index].owner = tmp;
|
||||
if (!p->owner)
|
||||
p->owner = tmp;
|
||||
ast_mutex_lock(&usecnt_lock);
|
||||
usecnt++;
|
||||
ast_mutex_unlock(&usecnt_lock);
|
||||
ast_update_use_count();
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue