From: Vadim Zeitlin Date: Sat, 8 Dec 2012 00:37:08 +0000 (+0000) Subject: Remove check of eof() return value validity. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/97e5a1969fa68c6284951497d03a0e9484485c4a Remove check of eof() return value validity. It's useless and resulted in a warning from Coverity as it correctly determined that this code could never be executed under Unix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/file.cpp b/src/common/file.cpp index e553b2c833..d6b4620e7d 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -511,10 +511,6 @@ bool wxFile::Eof() const { wxLogSysError(_("can't determine if the end of file is reached on descriptor %d"), m_fd); } - else if ( iRc != 1 ) - { - wxFAIL_MSG(wxT("invalid eof() return value.")); - } return true; }