From 4a545a76626d6aedc0b2d742afae0210dc15e0d2 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo <rizzo@icir.org> Date: Fri, 3 Nov 2006 18:17:08 +0000 Subject: [PATCH] remove old/useless usecnt stuff git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47131 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_zap.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/channels/chan_zap.c b/channels/chan_zap.c index e0a833b56f..0a2bfc3dd0 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -336,8 +336,6 @@ static int gendigittimeout = 8000; /*! \brief How long to wait for an extra digit, if there is an ambiguous match */ static int matchdigittimeout = 3000; -static int usecnt = 0; - /*! \brief Protect the interface list (of zt_pvt's) */ AST_MUTEX_DEFINE_STATIC(iflock); @@ -2922,8 +2920,6 @@ static int zt_hangup(struct ast_channel *ast) p->oprmode = 0; ast->tech_pvt = NULL; ast_mutex_unlock(&p->lock); - ast_atomic_fetchadd_int(&usecnt, -1); - ast_update_use_count(); if (option_verbose > 2) ast_verbose( VERBOSE_PREFIX_3 "Hungup '%s'\n", ast->name); @@ -5658,9 +5654,6 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int } } - ast_atomic_fetchadd_int(&usecnt, 1); - ast_update_use_count(); - return tmp; } -- GitLab