fixed unreachable code warnings (occurred in MSVC6+Release mode)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth
2005-12-20 14:25:36 +00:00
parent acb4c4bdb0
commit 769627d79e

View File

@@ -213,12 +213,10 @@ bool wxFile::Create(const wxChar *szFileName, bool bOverwrite, int accessMode)
wxLogSysError(_("can't create file '%s'"), szFileName); wxLogSysError(_("can't create file '%s'"), szFileName);
return false; return false;
} }
else
{
Attach(fd); Attach(fd);
return true; return true;
} }
}
// open the file // open the file
bool wxFile::Open(const wxChar *szFileName, OpenMode mode, int accessMode) bool wxFile::Open(const wxChar *szFileName, OpenMode mode, int accessMode)
@@ -267,11 +265,10 @@ bool wxFile::Open(const wxChar *szFileName, OpenMode mode, int accessMode)
wxLogSysError(_("can't open file '%s'"), szFileName); wxLogSysError(_("can't open file '%s'"), szFileName);
return false; return false;
} }
else {
Attach(fd); Attach(fd);
return true; return true;
} }
}
// close // close
bool wxFile::Close() bool wxFile::Close()