remove useless usecnt stuff
authorLuigi Rizzo <rizzo@icir.org>
Fri, 3 Nov 2006 12:19:22 +0000 (12:19 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Fri, 3 Nov 2006 12:19:22 +0000 (12:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47074 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index 53bc372..4eff85f 100644 (file)
@@ -937,11 +937,6 @@ static struct ast_channel *agent_new(struct agent_pvt *p, int state)
        ast_setstate(tmp, state);
        tmp->tech_pvt = p;
        p->owner = tmp;
-       /* XXX: this needs fixing */
-#if 0
-       ast_atomic_fetchadd_int(&__mod_desc->usecnt, +1);
-#endif
-       ast_update_use_count();
        tmp->priority = 1;
        /* Wake up and wait for other applications (by definition the login app)
         * to release this channel). Takes ownership of the agent channel