[asterisk-commits] rizzo: trunk r47073 - /trunk/channels/chan_features.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 3 05:15:14 MST 2006


Author: rizzo
Date: Fri Nov  3 06:15:13 2006
New Revision: 47073

URL: http://svn.digium.com/view/asterisk?rev=47073&view=rev
Log:
remove useless usecnt handling


Modified:
    trunk/channels/chan_features.c

Modified: trunk/channels/chan_features.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_features.c?rev=47073&r1=47072&r2=47073&view=diff
==============================================================================
--- trunk/channels/chan_features.c (original)
+++ trunk/channels/chan_features.c Fri Nov  3 06:15:13 2006
@@ -64,9 +64,6 @@
 #include "asterisk/stringfields.h"
 
 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)
 
@@ -487,10 +484,6 @@
 	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;
 }
 



More information about the asterisk-commits mailing list