diff options
Diffstat (limited to 'common/str.cpp')
-rw-r--r-- | common/str.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/common/str.cpp b/common/str.cpp index ad02bfdaf8..faf84d722f 100644 --- a/common/str.cpp +++ b/common/str.cpp @@ -665,18 +665,6 @@ String lastPathComponent(const String &path, const char sep) { return String(first, last); } -String String::stringByAppendingPathComponent(String component, char sep) const { - if (lastChar() == sep && component.firstChar() == sep) { - return String::format("%s%s", c_str(), component.c_str() + 1); - } - - if (lastChar() == sep || component.firstChar() == sep) { - return String::format("%s%s", c_str(), component.c_str()); - } - - return String::format("%s%c%s", c_str(), sep, component.c_str()); -} - String normalizePath(const String &path, const char sep) { if (path.empty()) return path; |