aboutsummaryrefslogtreecommitdiff
path: root/common/stream.h
diff options
context:
space:
mode:
authorMax Horn2009-05-19 11:42:14 +0000
committerMax Horn2009-05-19 11:42:14 +0000
commit65b5d318140c7ff846455a37ec7ae63e635bcdcf (patch)
tree77f278ceec1e54e097056df0b2820e414eed8290 /common/stream.h
parent4d59f620f9fdc1dfd7ccd6c7d30a0b5de480eb20 (diff)
downloadscummvm-rg350-65b5d318140c7ff846455a37ec7ae63e635bcdcf.tar.gz
scummvm-rg350-65b5d318140c7ff846455a37ec7ae63e635bcdcf.tar.bz2
scummvm-rg350-65b5d318140c7ff846455a37ec7ae63e635bcdcf.zip
COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
svn-id: r40725
Diffstat (limited to 'common/stream.h')
-rw-r--r--common/stream.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/common/stream.h b/common/stream.h
index b691567623..80e2978fb9 100644
--- a/common/stream.h
+++ b/common/stream.h
@@ -41,19 +41,6 @@ public:
virtual ~Stream() {}
/**
- * DEPRECATED: Use err() or eos() instead.
- * Returns true if any I/O failure occurred or the end of the
- * stream was reached while reading.
- */
- virtual bool ioFailed() const { return err(); }
-
- /**
- * DEPRECATED: Don't use this unless you are still using ioFailed().
- * Reset the I/O error status.
- */
- virtual void clearIOFailed() { clearErr(); }
-
- /**
* Returns true if an I/O failure occurred.
* This flag is never cleared automatically. In order to clear it,
* client code has to call clearErr() explicitly.
@@ -405,7 +392,7 @@ public:
* Upon successful completion, return a string with the content
* of the line, *without* the end of a line marker. This method
* does not indicate whether an error occured. Callers must use
- * ioFailed() or eos() to determine whether an exception occurred.
+ * err() or eos() to determine whether an exception occurred.
*/
virtual String readLine();
};
@@ -509,8 +496,6 @@ public:
~BufferedReadStream();
virtual bool eos() const { return (_pos == _bufSize) && _parentStream->eos(); }
- virtual bool ioFailed() const { return _parentStream->ioFailed(); }
- virtual void clearIOFailed() { _parentStream->clearIOFailed(); }
virtual bool err() const { return _parentStream->err(); }
virtual void clearErr() { _parentStream->clearErr(); }