aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/file.cpp4
-rw-r--r--common/file.h7
-rw-r--r--common/stream.h2
3 files changed, 1 insertions, 12 deletions
diff --git a/common/file.cpp b/common/file.cpp
index 69338f32f9..dd4281bd03 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -120,10 +120,6 @@ bool File::isOpen() const {
return _handle != NULL;
}
-bool File::ioFailed() const {
- return !_handle || (eos() || err());
-}
-
bool File::err() const {
assert(_handle);
return _handle->err();
diff --git a/common/file.h b/common/file.h
index 892395a184..6ac633c462 100644
--- a/common/file.h
+++ b/common/file.h
@@ -126,13 +126,6 @@ public:
*/
const char *getName() const { return _name.c_str(); }
- /**
- * DEPRECATED: Use err() or eos() instead.
- * Returns true if any I/O failure occurred or the end of the
- * stream was reached while reading.
- */
- bool ioFailed() const;
-
bool err() const; // implement abstract Stream method
void clearErr(); // implement abstract Stream method
bool eos() const; // implement abstract SeekableReadStream method
diff --git a/common/stream.h b/common/stream.h
index 80e2978fb9..9b03c20bd2 100644
--- a/common/stream.h
+++ b/common/stream.h
@@ -179,7 +179,7 @@ public:
* DEPRECATED
* Default implementation for backward compatibility
*/
- virtual bool ioFailed() { return (eos() || err()); }
+ inline bool ioFailed() { return (eos() || err()); }
/**
* Read an unsigned byte from the stream and return it.