From 194fa8b4ca6d3d13a6b92e34aae6b114f54cb207 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 25 Apr 2019 03:00:07 +0200 Subject: [PATCH] Remove unneeded KeepWaiting() and AfterWait() functions These functions were never used anywhere and their meaning was not clear, so just drop them. Also remove the now unused "tested" member and "WAIT_DURATION" constant. --- tests/fswatcher/fswatchertest.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/tests/fswatcher/fswatchertest.cpp b/tests/fswatcher/fswatchertest.cpp index 4363dd2517..e6c5f01265 100644 --- a/tests/fswatcher/fswatchertest.cpp +++ b/tests/fswatcher/fswatchertest.cpp @@ -202,8 +202,6 @@ EventGenerator* EventGenerator::ms_instance = 0; class FSWTesterBase : public wxEvtHandler { public: - enum { WAIT_DURATION = 3 }; - FSWTesterBase(int types = wxFSW_EVENT_ALL) : eg(EventGenerator::Get()), m_eventTypes(types) @@ -291,30 +289,6 @@ public: return true; } - virtual bool KeepWaiting() - { - // did we receive event already? - if (!tested) - { - // well, let's wait a bit more - wxSleep(WAIT_DURATION); - } - - return true; - } - - virtual bool AfterWait() - { - // fail if still no events - WX_ASSERT_MESSAGE - ( - ("No events during %d seconds!", static_cast(WAIT_DURATION)), - tested - ); - - return true; - } - virtual void OnFileSystemEvent(wxFileSystemWatcherEvent& evt) { wxLogDebug("--- %s ---", evt.ToString()); @@ -322,7 +296,6 @@ public: // test finished SendIdle(); - tested = true; } virtual void CheckResult() @@ -390,7 +363,6 @@ protected: wxScopedPtr m_watcher; int m_eventTypes; // Which event-types to watch. Normally all of them - bool tested; // indicates, whether we have already passed the test wxVector m_events; };