summaryrefslogtreecommitdiff
path: root/channels/chan_oss.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-10-31 17:58:49 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-10-31 17:58:49 +0000
commitfe28cd213b1801ae93d61966025f1a1fa49d968b (patch)
tree579d19f43090e7ce365e8094e312fe82d50f289b /channels/chan_oss.c
parent59dbf47c91944d2ed645b707c60f92faba9cf231 (diff)
remove old/useless usecount management code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_oss.c')
-rw-r--r--channels/chan_oss.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index 088a4e285..cba7356e3 100644
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -281,10 +281,6 @@ END_CONFIG
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#endif
-
-static int usecnt;
-AST_MUTEX_DEFINE_STATIC(usecnt_lock);
-
static char *config = "oss.conf"; /* default config file */
static int oss_debug;
@@ -841,9 +837,6 @@ static int oss_hangup(struct ast_channel *c)
c->tech_pvt = NULL;
o->owner = NULL;
ast_verbose(" << Hangup on console >> \n");
- ast_mutex_lock(&usecnt_lock); /* XXX not sure why */
- usecnt--;
- ast_mutex_unlock(&usecnt_lock);
if (o->hookstate) {
if (o->autoanswer || o->autohangup) {
/* Assume auto-hangup too */
@@ -1022,10 +1015,6 @@ static struct ast_channel *oss_new(struct chan_oss_pvt *o, char *ext, char *ctx,
o->owner = c;
ast_setstate(c, state);
- ast_mutex_lock(&usecnt_lock);
- usecnt++;
- ast_mutex_unlock(&usecnt_lock);
- ast_update_use_count();
ast_jb_configure(c, &global_jbconf);
if (state != AST_STATE_DOWN) {
if (ast_pbx_start(c)) {
@@ -1033,7 +1022,6 @@ static struct ast_channel *oss_new(struct chan_oss_pvt *o, char *ext, char *ctx,
ast_hangup(c);
o->owner = c = NULL;
/* XXX what about the channel itself ? */
- /* XXX what about usecnt ? */
}
}