diff options
author | Max Kellermann <max@musicpd.org> | 2018-07-18 16:38:57 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-07-18 16:51:29 +0200 |
commit | f87265a4d52f140d6f156868b2e92efd1951c07e (patch) | |
tree | 738c92273a1a6d685d4d00d0d12557c1e22cbc02 /src/fs/AllocatedPath.cxx | |
parent | 6448b31b11f54cf46a81a6651ff5f15ab6b06656 (diff) |
fs/AllocatedPath: divert some methods to class Path
Eliminate duplicate code.
Diffstat (limited to 'src/fs/AllocatedPath.cxx')
-rw-r--r-- | src/fs/AllocatedPath.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/fs/AllocatedPath.cxx b/src/fs/AllocatedPath.cxx index 2c94b37ce..afae0c872 100644 --- a/src/fs/AllocatedPath.cxx +++ b/src/fs/AllocatedPath.cxx @@ -52,22 +52,6 @@ AllocatedPath::FromUTF8Throw(const char *path_utf8) #endif } -AllocatedPath -AllocatedPath::GetDirectoryName() const noexcept -{ - return FromFS(PathTraitsFS::GetParent(c_str())); -} - -std::string -AllocatedPath::ToUTF8() const noexcept -{ - try { - return ::PathToUTF8(c_str()); - } catch (...) { - return std::string(); - } -} - void AllocatedPath::ChopSeparators() noexcept { |