From 05f6adbbd90f58346a0bca85793069c387c54b67 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 3 May 2006 20:49:33 +0000 Subject: Removed FilesystemNode::isValid (leaving it up to the porters to decide whether to remove their isValid code or not) svn-id: r22317 --- backends/fs/abstract-fs.h | 1 - backends/fs/fs.cpp | 6 ------ backends/fs/fs.h | 10 ---------- 3 files changed, 17 deletions(-) (limited to 'backends/fs') 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 @@ -121,16 +121,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 -- cgit v1.2.3