From ea2bff0b50481a620c81a47740e61e18808eb24f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Mar 2020 23:13:06 +0100 Subject: [PATCH] Remove code guarded with wxUSE_GUI from wxLog unit test This file is never compiled with wxUSE_GUI==1, so having these tests here is not really useful. It's unfortunately that the absence of warnings from wxLogStatus() is not checked currently, but it doesn't seem worth recompiling the entire test case or adding a new one just for this. --- tests/log/logtest.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/log/logtest.cpp b/tests/log/logtest.cpp index f1b26f77bf..95f2d48def 100644 --- a/tests/log/logtest.cpp +++ b/tests/log/logtest.cpp @@ -422,10 +422,6 @@ static void v(int x, ...) wxVLogFatalError("vhello fatal %d", list); if (true) wxVLogSysError("vhello syserror %d", list); -#if wxUSE_GUI - if (true) - wxVLogStatus("vhello status %d", list); -#endif if (true) wxVLogDebug("vhello debug %d", list); @@ -451,10 +447,6 @@ void macroCompilabilityTest() wxLogFatalError("hello fatal %d", 42); if (true) wxLogSysError("hello syserror %d", 42); -#if wxUSE_GUI - if (true) - wxLogStatus("hello status %d", 42); -#endif if (true) wxLogDebug("hello debug %d", 42); }