diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-11-03 12:15:13 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-11-03 12:15:13 +0000 |
commit | 5397441866cbc2dd15433eab7923139a73681ac3 (patch) | |
tree | 9327d7e5d7064c3934738eecd6bd0455992365f3 | |
parent | d5ea99c868263fd8b08a996d22b27dc61256f385 (diff) |
remove useless usecnt handling
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_features.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/channels/chan_features.c b/channels/chan_features.c index 5b08a1875..bf5ef8d5b 100644 --- a/channels/chan_features.c +++ b/channels/chan_features.c @@ -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; } |