Skip to content

Commit

Permalink
Feat/CrashRpt: Remove crash testing code, closes #193
Browse files Browse the repository at this point in the history
  • Loading branch information
TwinFan committed Dec 6, 2024
1 parent f5f9ff7 commit e0c7bc2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions Src/LTRealTraffic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
8 changes: 0 additions & 8 deletions Src/LiveTraffic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned long long>(iRef);
zero -= 5;
dataRefs.SetMaxNumAc(zero / zero);
}

ACIWnd::CloseAll();
break;
case MENU_ID_TOGGLE_AIRCRAFT:
Expand Down

0 comments on commit e0c7bc2

Please sign in to comment.