aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVincent Bénony2016-01-06 15:43:42 +0100
committerVincent Bénony2016-01-06 16:20:29 +0100
commit16605a3e1062efe96d1f647a93ddda379c77f453 (patch)
tree4c3531101de60bd87a952d77f462e56df1bdd339 /common
parenta56c58765191f17180f612d69a4c4bf8d3c13233 (diff)
downloadscummvm-rg350-16605a3e1062efe96d1f647a93ddda379c77f453.tar.gz
scummvm-rg350-16605a3e1062efe96d1f647a93ddda379c77f453.tar.bz2
scummvm-rg350-16605a3e1062efe96d1f647a93ddda379c77f453.zip
IOS: Moves the helper function were it is used.
Diffstat (limited to 'common')
-rw-r--r--common/str.cpp12
-rw-r--r--common/str.h5
2 files changed, 0 insertions, 17 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;
diff --git a/common/str.h b/common/str.h
index f156290e94..a30dae3513 100644
--- a/common/str.h
+++ b/common/str.h
@@ -218,11 +218,6 @@ public:
*/
void trim();
- /**
- * Add a path component
- */
- String stringByAppendingPathComponent(String component, char sep = '/') const;
-
uint hash() const;
/**