aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/ps2
diff options
context:
space:
mode:
authorMax Horn2008-08-27 20:31:22 +0000
committerMax Horn2008-08-27 20:31:22 +0000
commitcb21c25e417bb546f6678ab9da7440c6e1b4b2fd (patch)
tree0ffb1123245e8ee73d4a4c4db8b166e395bac6d0 /backends/fs/ps2
parent79fafb7b6ae8b23aaa407b4bca56170d2d46b6ac (diff)
downloadscummvm-rg350-cb21c25e417bb546f6678ab9da7440c6e1b4b2fd.tar.gz
scummvm-rg350-cb21c25e417bb546f6678ab9da7440c6e1b4b2fd.tar.bz2
scummvm-rg350-cb21c25e417bb546f6678ab9da7440c6e1b4b2fd.zip
FSNode code: Merged most versions of lastPathComponent() into one new AbstractFilesystemNode::lastPathComponent() method, with customizable path separator character
svn-id: r34197
Diffstat (limited to 'backends/fs/ps2')
-rw-r--r--backends/fs/ps2/ps2-fs.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/backends/fs/ps2/ps2-fs.cpp b/backends/fs/ps2/ps2-fs.cpp
index 782e97b959..b0f1ddbafb 100644
--- a/backends/fs/ps2/ps2-fs.cpp
+++ b/backends/fs/ps2/ps2-fs.cpp
@@ -100,28 +100,6 @@ public:
virtual AbstractFilesystemNode *getParent() const;
};
-/**
- * Returns the last component of a given path.
- *
- * @param str String containing the path.
- * @return Pointer to the first char of the last component inside str.
- */
-const char *lastPathComponent(const Common::String &str) {
- if (str.empty())
- return "";
-
- const char *start = str.c_str();
- const char *cur = start + str.size() - 2;
-
- while (cur >= start && *cur != '/' && *cur != ':') {
- --cur;
- }
-
- printf("romeo : lastPathComponent = %s\n", cur + 1);
-
- return cur + 1;
-}
-
Ps2FilesystemNode::Ps2FilesystemNode() {
_isDirectory = true;
_isRoot = true;