diff options
author | David Corrales | 2007-06-16 17:31:36 +0000 |
---|---|---|
committer | David Corrales | 2007-06-16 17:31:36 +0000 |
commit | f7ea7e666da6e484577d0341fb0331dff75c69f7 (patch) | |
tree | b7e0b6ce4287cba50ee72e2ab50ca31d942466b2 /backends/fs | |
parent | b405220ff2990b01b93c03a664ae9247b2fc422c (diff) | |
download | scummvm-rg350-f7ea7e666da6e484577d0341fb0331dff75c69f7.tar.gz scummvm-rg350-f7ea7e666da6e484577d0341fb0331dff75c69f7.tar.bz2 scummvm-rg350-f7ea7e666da6e484577d0341fb0331dff75c69f7.zip |
Removed the isValid operation from the FilesystemNode class in favor of the much richer combinations possible with the new operations (exists, isReadable and isWritable).
The work on the Common::File class is far from complete. Only the necessary was updated.
svn-id: r27473
Diffstat (limited to 'backends/fs')
-rw-r--r-- | backends/fs/abstract-fs.h | 5 | ||||
-rw-r--r-- | backends/fs/posix/posix-fs.cpp | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/backends/fs/abstract-fs.h b/backends/fs/abstract-fs.h index bb7669739f..fed2b9b4c5 100644 --- a/backends/fs/abstract-fs.h +++ b/backends/fs/abstract-fs.h @@ -122,11 +122,6 @@ public: virtual bool isReadable() const = 0; /** - * Indicates whether this path is valid or not for usage. - */ - virtual bool isValid() const = 0; - - /** * Indicates whether this path can be written to or not. */ virtual bool isWritable() const = 0; diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp index 2e222f34f8..fb5c9dc5d7 100644 --- a/backends/fs/posix/posix-fs.cpp +++ b/backends/fs/posix/posix-fs.cpp @@ -68,7 +68,6 @@ public: virtual String getPath() const { return _path; } virtual bool isDirectory() const { return _isDirectory; } virtual bool isReadable() const { return access(_path.c_str(), R_OK) == 0; } - virtual bool isValid() const { return _isValid; } virtual bool isWritable() const { return access(_path.c_str(), W_OK) == 0; } virtual AbstractFilesystemNode *getChild(const String &n) const; |