diff options
author | Max Kellermann <max@duempel.org> | 2014-02-07 19:01:06 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-07 19:09:28 +0100 |
commit | ffd16b55a69a01b906805752acc11e26491138bc (patch) | |
tree | eae175525c3691e87c348bc107f903e61302cf69 /src/Mapper.cxx | |
parent | d744c997d8a4370d56901c5bdf92d3cca0ef83bc (diff) | |
download | mpd-ffd16b55a69a01b906805752acc11e26491138bc.tar.gz mpd-ffd16b55a69a01b906805752acc11e26491138bc.tar.xz mpd-ffd16b55a69a01b906805752acc11e26491138bc.zip |
StoragePlugin: add method MapToRelativeUTF8()
Replaces map_to_relative_path() from Mapper.cxx.
Diffstat (limited to 'src/Mapper.cxx')
-rw-r--r-- | src/Mapper.cxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/Mapper.cxx b/src/Mapper.cxx index 5a02096e8..1073068f5 100644 --- a/src/Mapper.cxx +++ b/src/Mapper.cxx @@ -160,21 +160,6 @@ mapper_get_music_directory_fs(void) #endif -const char * -map_to_relative_path(const char *path_utf8) -{ -#ifdef ENABLE_DATABASE - return !music_dir_utf8.empty() && - memcmp(path_utf8, music_dir_utf8.c_str(), - music_dir_utf8_length) == 0 && - PathTraitsUTF8::IsSeparator(path_utf8[music_dir_utf8_length]) - ? path_utf8 + music_dir_utf8_length + 1 - : path_utf8; -#else - return path_utf8; -#endif -} - #ifdef ENABLE_DATABASE AllocatedPath |