Skip to content

Commit

Permalink
[profiled] Remove dead code
Browse files Browse the repository at this point in the history
Since the inheritance rules were changed, the default_() function
is no longer used or needed.

Remove it.
  • Loading branch information
spiiroin committed Mar 14, 2015
1 parent a247909 commit 617719c
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions database.c
Expand Up @@ -249,31 +249,6 @@ static const char *custom_(const char *profile, const char *key)
return inifile_get(database_custom, profile, key, NULL);
}

/* ------------------------------------------------------------------------- *
* default_ -- helper for getting default value for key
* ------------------------------------------------------------------------- */

static const char *default_(const char *profile, const char *key)
{
/* - - - - - - - - - - - - - - - - - - - *
* profile lookup order:
* 1. config: "override"
* 2. config: caller provided
* 3. config: "fallback"
* - - - - - - - - - - - - - - - - - - - */

const char *res = 0;

if( (res = override_(key)) == 0 )
{
if( (res = config_(profile, key)) == 0 )
{
res = fallback_(key);
}
}
return res;
}

/* ------------------------------------------------------------------------- *
* current_ -- helper for getting current value for key
* ------------------------------------------------------------------------- */
Expand Down

0 comments on commit 617719c

Please sign in to comment.