diff --git a/docs/doxygen/mainpages/const_cpp.h b/docs/doxygen/mainpages/const_cpp.h
index 7a513be52b..0397d3afb6 100644
--- a/docs/doxygen/mainpages/const_cpp.h
+++ b/docs/doxygen/mainpages/const_cpp.h
@@ -43,7 +43,6 @@ while __WINDOWS__ should be used for the platform tests.}
@itemdef{__WXOSX_COCOA__, macOS using Cocoa (AppKit)}
@itemdef{__WXOSX_MAC__, macOS (Cocoa)}
@itemdef{__WXPM__, OS/2 native Presentation Manager (not used any longer).}
-@itemdef{__WXSTUBS__, Stubbed version ('template' wxWin implementation)}
@itemdef{__WXXT__, Xt; mutually exclusive with WX_MOTIF, not implemented in wxWidgets 2.x}
@itemdef{__WXX11__, wxX11 (__WXUNIVERSAL__ will be also defined)}
@itemdef{__WXWINE__, WINE (i.e. WIN32 on Unix)}
diff --git a/src/common/file.cpp b/src/common/file.cpp
index da15d06d89..e231ca0c8d 100644
--- a/src/common/file.cpp
+++ b/src/common/file.cpp
@@ -50,9 +50,6 @@
#ifdef __GNUWIN32__
#include "wx/msw/wrapwin.h"
#endif
-#elif (defined(__WXSTUBS__))
- // Have to ifdef this for different environments
- #include
#else
#error "Please specify the header with file functions declarations."
#endif //Win/UNIX