summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-11-03 12:14:00 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-11-03 12:14:00 +0000
commitd5ea99c868263fd8b08a996d22b27dc61256f385 (patch)
tree09cd43491537f81f7f21f47b10d450e41f0ad6ff
parent79f75ec09a7fbe693481d15bd9a6ed63d0b45669 (diff)
remove useless usecnt handling code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_skinny.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index ac698c96c..bda495a82 100644
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -866,10 +866,6 @@ static char *skinny_cxmodes[] = {
static struct sched_context *sched;
static struct io_context *io;
-/* usage count and locking */
-static int usecnt = 0;
-AST_MUTEX_DEFINE_STATIC(usecnt_lock);
-
/* Protect the monitoring thread, so only one process can kill or start it, and not
when it's doing something critical. */
AST_MUTEX_DEFINE_STATIC(monlock);
@@ -2754,10 +2750,6 @@ static struct ast_channel *skinny_new(struct skinny_line *l, int state)
if (l->amaflags)
tmp->amaflags = l->amaflags;
- ast_mutex_lock(&usecnt_lock);
- usecnt++;
- ast_mutex_unlock(&usecnt_lock);
- ast_update_use_count();
tmp->callgroup = l->callgroup;
tmp->pickupgroup = l->pickupgroup;
ast_string_field_set(tmp, call_forward, l->call_forward);