Clean some unused globals in main.cpp

This commit is contained in:
jief666 2021-10-27 21:41:42 +02:00
parent 891edf8a3c
commit 07b993b8b2

View File

@ -123,9 +123,9 @@ XBool gThemeNeedInit = true;
XBool DoHibernateWake = false; XBool DoHibernateWake = false;
EFI_HANDLE ConsoleInHandle; //EFI_HANDLE ConsoleInHandle;
EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL* SimpleTextEx; //EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL* SimpleTextEx;
EFI_KEY_DATA KeyData; //EFI_KEY_DATA KeyData;
EFI_HANDLE AudioDriverHandle; EFI_HANDLE AudioDriverHandle;
XStringW OpenRuntimeEfiName; XStringW OpenRuntimeEfiName;
@ -2631,7 +2631,7 @@ RefitMain (IN EFI_HANDLE ImageHandle,
InitBooterLog(); InitBooterLog();
ConsoleInHandle = SystemTable->ConsoleInHandle; // ConsoleInHandle = SystemTable->ConsoleInHandle;
//#define DEBUG_ERALY_CRASH //#define DEBUG_ERALY_CRASH
#ifdef DEBUG_ERALY_CRASH #ifdef DEBUG_ERALY_CRASH
@ -2765,11 +2765,11 @@ RefitMain (IN EFI_HANDLE ImageHandle,
DBG("UnicodeCollation Status=%s\n", efiStrError(Status)); DBG("UnicodeCollation Status=%s\n", efiStrError(Status));
} }
Status = gBS->HandleProtocol(ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (void **)&SimpleTextEx); // Status = gBS->HandleProtocol(ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (void **)&SimpleTextEx);
if ( EFI_ERROR(Status) ) { // if ( EFI_ERROR(Status) ) {
SimpleTextEx = NULL; // SimpleTextEx = NULL;
} // }
DBG("SimpleTextEx Status=%s\n", efiStrError(Status)); // DBG("SimpleTextEx Status=%s\n", efiStrError(Status));
gConf.InitialisePlatform(); gConf.InitialisePlatform();