From 668a6023e9da28fea85b4968fd13e9aa911cc0eb Mon Sep 17 00:00:00 2001 From: Hleb Valoshka <375gnu@gmail.com> Date: Fri, 7 May 2021 18:45:53 +0300 Subject: [PATCH] [win32] Remove useless check for nullptr --- src/celestia/win32/winmain.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/celestia/win32/winmain.cpp b/src/celestia/win32/winmain.cpp index 2e36c14a3..bd6d2b3af 100644 --- a/src/celestia/win32/winmain.cpp +++ b/src/celestia/win32/winmain.cpp @@ -3197,20 +3197,6 @@ int APIENTRY WinMain(HINSTANCE hInstance, } appCore = new CelestiaCore(); - if (appCore == NULL) - { - if (s_splash != NULL) - { - s_splash->close(); - delete s_splash; - s_splash = NULL; - } - - MessageBox(NULL, - "Out of memory.", "Fatal Error", - MB_OK | MB_ICONERROR | MB_TOPMOST); - return false; - } // Gettext integration setlocale(LC_ALL, "");