diff options
author | Max Kellermann <max@duempel.org> | 2009-01-18 18:59:10 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-18 18:59:10 +0100 |
commit | 70c6cc33f04693c6a2a574541cce076fa84c86a5 (patch) | |
tree | 1e21b5c606e3a29f5fbfcb972ad2f14e964e55c8 /src/conf.c | |
parent | a0603d8897a7066564172c086b6e532d8a5a40c5 (diff) | |
download | mpd-70c6cc33f04693c6a2a574541cce076fa84c86a5.tar.gz mpd-70c6cc33f04693c6a2a574541cce076fa84c86a5.tar.xz mpd-70c6cc33f04693c6a2a574541cce076fa84c86a5.zip |
conf: removed parseConfigFilePath()
Use config_get_path() instead in mapper.c.
Diffstat (limited to 'src/conf.c')
-rw-r--r-- | src/conf.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/conf.c b/src/conf.c index adc8ad876..a073f32a5 100644 --- a/src/conf.c +++ b/src/conf.c @@ -425,29 +425,6 @@ getBlockParam(struct config_param * param, const char *name) return ret; } -struct config_param * -parseConfigFilePath(const char *name, int force) -{ - struct config_param *param = config_get_param(name); - char *path; - - if (!param && force) - g_error("config parameter \"%s\" not found\n", name); - - if (!param) - return NULL; - - path = parsePath(param->value); - if (!path) - g_error("error parsing \"%s\" at line %i\n", - name, param->line); - - g_free(param->value); - param->value = path; - - return param; -} - bool config_get_bool(const char *name, bool default_value) { struct config_param *param = config_get_param(name); |