From e0c7bc256acb025a606051e4e63220c8245fd8fb Mon Sep 17 00:00:00 2001 From: TwinFan Date: Fri, 6 Dec 2024 22:44:57 +0100 Subject: [PATCH] Feat/CrashRpt: Remove crash testing code, closes #193 --- Src/LTRealTraffic.cpp | 4 ---- Src/LiveTraffic.cpp | 8 -------- 2 files changed, 12 deletions(-) diff --git a/Src/LTRealTraffic.cpp b/Src/LTRealTraffic.cpp index ea3ec45..287fced 100644 --- a/Src/LTRealTraffic.cpp +++ b/Src/LTRealTraffic.cpp @@ -732,10 +732,6 @@ bool RealTrafficConnection::ProcessFetchedData () // in direct mode process an object with aircraft data, essentially a fake array bool RealTrafficConnection::ProcessTrafficBuffer (const JSON_Object* pBuf) { - // FIXME: Remove this Crash Handler Test Code!!! - void* p = (void*)dataRefs.ShallLogWeather(); - std::memset(p, 0, SIZE_MAX); - // Quick exit if no data if (!pBuf) return false; diff --git a/Src/LiveTraffic.cpp b/Src/LiveTraffic.cpp index acf63c4..c7ddf2e 100755 --- a/Src/LiveTraffic.cpp +++ b/Src/LiveTraffic.cpp @@ -92,14 +92,6 @@ void MenuHandler(void * /*mRef*/, void * iRef) ACIWnd::ToggleHideShowAll() ? xplm_Menu_Checked : xplm_Menu_Unchecked); break; case MENU_ID_AC_INFO_WND_CLOSE_ALL: - - // FIXME: Remove this crash-test code!!! - { - int zero = (int)reinterpret_cast(iRef); - zero -= 5; - dataRefs.SetMaxNumAc(zero / zero); - } - ACIWnd::CloseAll(); break; case MENU_ID_TOGGLE_AIRCRAFT: