diff options
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 |