Skip to content
Snippets Groups Projects
Commit a10e1dad authored by Russell Bryant's avatar Russell Bryant
Browse files

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
parent d6f9808e
No related branches found
No related tags found
No related merge requests found
...@@ -702,18 +702,6 @@ static const char *description(void) ...@@ -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) static const char *key(void)
{ {
return ASTERISK_GPL_KEY; return ASTERISK_GPL_KEY;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment