aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2006-07-13 18:27:02 +0000
committerAvuton Olrich <avuton@gmail.com>2006-07-13 18:27:02 +0000
commit82d0d4f51fac11c24e60c44110a8580960daaeb2 (patch)
tree90086e02ecc3769e43cea18b361657918b04d01a
parentb0fb09631192e681baa169221565a928862d1e2e (diff)
downloadmpd-82d0d4f51fac11c24e60c44110a8580960daaeb2.tar.gz
mpd-82d0d4f51fac11c24e60c44110a8580960daaeb2.tar.xz
mpd-82d0d4f51fac11c24e60c44110a8580960daaeb2.zip
Remove forceGetConfigParamValue, it's unused and even
if it wasn't it'd probably be better to add a argument to getConfigParamValue() git-svn-id: https://svn.musicpd.org/mpd/trunk@4313 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/conf.c11
-rw-r--r--src/conf.h2
2 files changed, 0 insertions, 13 deletions
diff --git a/src/conf.c b/src/conf.c
index 0f197dabc..d824555e0 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -338,17 +338,6 @@ char * getConfigParamValue(char * name) {
return param->value;
}
-char * forceAndGetConfigParamValue(char * name) {
- ConfigParam * param = getConfigParam(name);
-
- if(!param) {
- ERROR("\"%s\" not found in config file\n", name);
- exit(EXIT_FAILURE);
- }
-
- return param->value;
-}
-
BlockParam * getBlockParam(ConfigParam * param, char * name) {
BlockParam * ret = NULL;
int i;
diff --git a/src/conf.h b/src/conf.h
index 864cf1f66..3a62e7c87 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -85,8 +85,6 @@ ConfigParam * getNextConfigParam(char * name, ConfigParam * last);
char * getConfigParamValue(char * name);
-char * forceAndGetConfigParamValue(char * name);
-
void registerConfigParam(char * name, int repeats, int block);
BlockParam * getBlockParam(ConfigParam * param, char * name);