diff options
author | Einar Johan Trøan Sømåen | 2012-07-29 18:00:15 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-29 18:00:15 +0200 |
commit | 20e2ec4ff4d869ba54edf5b930d84340245292b6 (patch) | |
tree | d4ce79e1c6b5ccfd3e726791c8e6e1f70f4fcaaa /engines/wintermute/utils/path_util.cpp | |
parent | 2e7d21fc525a5b0451274d3844e3d6a1de1f6cb2 (diff) | |
download | scummvm-rg350-20e2ec4ff4d869ba54edf5b930d84340245292b6.tar.gz scummvm-rg350-20e2ec4ff4d869ba54edf5b930d84340245292b6.tar.bz2 scummvm-rg350-20e2ec4ff4d869ba54edf5b930d84340245292b6.zip |
WINTERMUTE: Remove unused functions from StringUtil::
Diffstat (limited to 'engines/wintermute/utils/path_util.cpp')
-rw-r--r-- | engines/wintermute/utils/path_util.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/wintermute/utils/path_util.cpp b/engines/wintermute/utils/path_util.cpp index 065e0aada9..dcf35be776 100644 --- a/engines/wintermute/utils/path_util.cpp +++ b/engines/wintermute/utils/path_util.cpp @@ -28,7 +28,6 @@ #include "common/file.h"
#include "engines/wintermute/utils/path_util.h"
-#include "engines/wintermute/utils/string_util.h"
namespace WinterMute {
@@ -57,7 +56,7 @@ AnsiString PathUtil::combine(const AnsiString &path1, const AnsiString &path2) { AnsiString newPath1 = unifySeparators(path1);
AnsiString newPath2 = unifySeparators(path2);
- if (!StringUtil::endsWith(newPath1, "/", true) && !StringUtil::startsWith(newPath2, "/", true)) {
+ if (!newPath1.hasSuffix("/") && !newPath2.hasPrefix("/")) {
newPath1 += "/";
}
|