Remove MSVS 2003, a.k.a. MSVC 7, support from the code

It was probably not supported since quite some time anyhow, because wx
own code uses CallAfter() which wouldn't compile with it, but now we can
can get rid of wxHAS_CALL_AFTER checks too.
This commit is contained in:
Vadim Zeitlin
2021-04-26 15:18:39 +01:00
parent 84bcc109ad
commit 41268e014d
3 changed files with 5 additions and 20 deletions

View File

@@ -31,14 +31,10 @@
#include "wx/vector.h"
#include "wx/meta/convertible.h"
#include "wx/meta/removeref.h"
// Currently VC7 is known to not be able to compile CallAfter() code, so
// disable it for it (FIXME-VC7).
#if !defined(__VISUALC__) || wxCHECK_VISUALC_VERSION(8)
#include "wx/meta/removeref.h"
#define wxHAS_CALL_AFTER
#endif
// This is now always defined, but keep it for backwards compatibility.
#define wxHAS_CALL_AFTER
// ----------------------------------------------------------------------------
// forward declarations
@@ -1373,8 +1369,6 @@ private:
// done asynchronously, i.e. at some later time, instead of immediately when
// the event object is constructed.
#ifdef wxHAS_CALL_AFTER
// This is a base class used to process all method calls.
class wxAsyncMethodCallEvent : public wxEvent
{
@@ -1555,9 +1549,6 @@ private:
FunctorType m_fn;
};
#endif // wxHAS_CALL_AFTER
#if wxUSE_GUI
@@ -3705,7 +3696,6 @@ public:
static void WXConsumeException();
#endif // wxUSE_EXCEPTIONS
#ifdef wxHAS_CALL_AFTER
// Asynchronous method calls: these methods schedule the given method
// pointer for a later call (during the next idle event loop iteration).
//
@@ -3749,7 +3739,6 @@ public:
{
QueueEvent(new wxAsyncMethodCallEventFunctor<T>(this, fn));
}
#endif // wxHAS_CALL_AFTER
// Connecting and disconnecting