diff options
author | Max Horn | 2006-05-03 20:49:33 +0000 |
---|---|---|
committer | Max Horn | 2006-05-03 20:49:33 +0000 |
commit | 05f6adbbd90f58346a0bca85793069c387c54b67 (patch) | |
tree | aeb7151779c221e1aec308d55445f4e9e234aba2 /backends | |
parent | b67c30f6c8f5b7c31f9acd9aa7fe9ac1d295ba5f (diff) | |
download | scummvm-rg350-05f6adbbd90f58346a0bca85793069c387c54b67.tar.gz scummvm-rg350-05f6adbbd90f58346a0bca85793069c387c54b67.tar.bz2 scummvm-rg350-05f6adbbd90f58346a0bca85793069c387c54b67.zip |
Removed FilesystemNode::isValid (leaving it up to the porters to decide whether to remove their isValid code or not)
svn-id: r22317
Diffstat (limited to 'backends')
-rw-r--r-- | backends/fs/abstract-fs.h | 1 | ||||
-rw-r--r-- | backends/fs/fs.cpp | 6 | ||||
-rw-r--r-- | backends/fs/fs.h | 10 |
3 files changed, 0 insertions, 17 deletions
diff --git a/backends/fs/abstract-fs.h b/backends/fs/abstract-fs.h index d6229a992c..da9cef9aab 100644 --- a/backends/fs/abstract-fs.h +++ b/backends/fs/abstract-fs.h @@ -85,7 +85,6 @@ public: virtual ~AbstractFilesystemNode() {} virtual String displayName() const = 0; - virtual bool isValid() const = 0; virtual bool isDirectory() const = 0; virtual String path() const = 0; virtual bool listDir(AbstractFSList &list, ListMode mode) const = 0; diff --git a/backends/fs/fs.cpp b/backends/fs/fs.cpp index 12cdc145ba..f111e78a0f 100644 --- a/backends/fs/fs.cpp +++ b/backends/fs/fs.cpp @@ -121,12 +121,6 @@ Common::String FilesystemNode::displayName() const { return _realNode->displayName(); } -bool FilesystemNode::isValid() const { - if (_realNode == 0) - return false; - return _realNode->isValid(); -} - bool FilesystemNode::isDirectory() const { if (_realNode == 0) return false; diff --git a/backends/fs/fs.h b/backends/fs/fs.h index f2930bd375..f272cb2164 100644 --- a/backends/fs/fs.h +++ b/backends/fs/fs.h @@ -122,16 +122,6 @@ public: virtual String displayName() const; /** - * Is this node valid? Returns true if the file/directory pointed - * to by this node exists, false otherwise. - * - * @todo Maybe rename this to exists() ? Or maybe even distinguish between - * the two? E.g. a path may be non-existant but valid, while another might - * be completely invalid). But do we ever need to make that distinction? - */ - virtual bool isValid() const; - - /** * Is this node pointing to a directory? * @todo Currently we assume that a valid node that is not a directory * automatically is a file (ignoring things like symlinks). That might |