From: Russell Bryant Date: Fri, 7 Jul 2006 06:58:16 +0000 (+0000) Subject: remove the unused usecount function to eliminate a compiler warning X-Git-Tag: 1.4.0-beta1~645 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a10e1dad075dcb4c43b9efce98a157ef9799cfc7;p=thirdparty%2Fasterisk.git remove the unused usecount function to eliminate a compiler warning git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37288 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c index 97a3938932..885b9192ef 100644 --- a/res/res_config_pgsql.c +++ b/res/res_config_pgsql.c @@ -702,18 +702,6 @@ static const char *description(void) } -static int usecount(void) -{ - /* XXX check this... */ - /* Try and get a lock. If unsuccessful, than that means another thread is using the pgsql object. */ - if (ast_mutex_trylock(&pgsql_lock)) { - ast_log(LOG_DEBUG, "Postgresql RealTime: Module usage count is 1.\n"); - return 1; - } - ast_mutex_unlock(&pgsql_lock); - return 0; -} - static const char *key(void) { return ASTERISK_GPL_KEY;