X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64e9f56b807228891c5839a01d26db4e6e9e9139..a949e8fac2666418b2a6eb15e94959563cf8aad6:/src/common/image.cpp diff --git a/src/common/image.cpp b/src/common/image.cpp index f26ae13855..5a357beca3 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -1005,13 +1005,11 @@ int wxImage::GetImageCount( const wxString &name, long type ) { #if wxUSE_STREAMS wxFileInputStream stream(name); - if (!stream.Ok()) - return 0; - else + if (stream.Ok()) return GetImageCount(stream, type); -#else - return 0; #endif + + return 0; } #if wxUSE_STREAMS @@ -1267,13 +1265,6 @@ void wxImage::InitStandardHandlers() #if wxUSE_STREAMS AddHandler(new wxBMPHandler); #endif // wxUSE_STREAMS - -#if wxUSE_XPM && !defined(__WXGTK__) && !defined(__WXMOTIF__) - // NB: keep this #ifdef in sync with the one in imagall.cpp - - // they must complement each other so that there's always exactly - // one XPM handler added after calling wxInitAllImageHandlers() - AddHandler(new wxXPMHandler); -#endif } void wxImage::CleanUpHandlers()