diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-07 06:58:16 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-07 06:58:16 +0000 |
commit | ed09a7dc4c1194a3fa66e880d7fa277dc248a79b (patch) | |
tree | fb583c7363e97c65061afa563b568e105f71c167 /res | |
parent | e08034951311f5ee2d4c8ea2307ec04fad5c2822 (diff) |
remove the unused usecount function to eliminate a compiler warning
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37288 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_config_pgsql.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c index 97a393893..885b9192e 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; |