From 8d17b17cfc1af4b4f9dc0b566f1207c73ae9557b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20H=C3=A4user?= Date: Tue, 27 Feb 2018 23:26:49 +0100 Subject: MinPlatformPkg/DxePlatformBootManagerLib: Remove unused variables. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser Reviewed-by: Jiewen Yao --- .../Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c | 9 ++------- .../Bds/Library/DxePlatformBootManagerLib/PlatformBootOption.c | 8 ++++---- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c b/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c index 2e4eff15eb..79ff8b0b6c 100644 --- a/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c +++ b/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c @@ -522,9 +522,6 @@ GetGraphicsController ( EFI_HANDLE *PciHandles; UINTN PciHandlesSize; EFI_DEVICE_PATH_PROTOCOL *DevicePath; - VOID *TrustedConsoleDevicepath; - - TrustedConsoleDevicepath = PcdGetPtr (PcdTrustedConsoleOutputDevicePath); Status = gBS->LocateHandleBuffer ( ByProtocol, @@ -817,16 +814,14 @@ BootCurrentIsInternalShell ( CHAR16 BootOptionName[16]; UINT8 *BootOption; UINT8 *Ptr; - EFI_DEVICE_PATH_PROTOCOL *BootDevicePath; BOOLEAN Result; EFI_STATUS Status; EFI_DEVICE_PATH_PROTOCOL *TempDevicePath; EFI_DEVICE_PATH_PROTOCOL *LastDeviceNode; EFI_GUID *GuidPoint; - BootOption = NULL; - BootDevicePath = NULL; - Result = FALSE; + BootOption = NULL; + Result = FALSE; // // Get BootCurrent variable diff --git a/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/PlatformBootOption.c b/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/PlatformBootOption.c index db36ba1e22..ea30de0540 100644 --- a/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/PlatformBootOption.c +++ b/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/PlatformBootOption.c @@ -290,14 +290,11 @@ PlatformBootManagerWaitCallback ( UINT16 TimeoutRemain ) { - UINT16 Timeout; EFI_STATUS Status; EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TxtInEx; EFI_KEY_DATA KeyData; BOOLEAN PausePressed; - Timeout = PcdGet16 (PcdPlatformBootTimeOut); - // // Pause on PAUSE key // @@ -345,9 +342,11 @@ RegisterDefaultBootOption ( VOID ) { +#if 0 EFI_DEVICE_PATH_PROTOCOL *DevicePath; EFI_LOADED_IMAGE_PROTOCOL *LoadedImage; MEDIA_FW_VOL_FILEPATH_DEVICE_PATH FileNode; +#endif UINT16 *ShellData; UINT32 ShellDataSize; @@ -363,7 +362,7 @@ RegisterDefaultBootOption ( if (mBootMenuOptionNumber == LoadOptionNumberUnassigned) { DEBUG ((DEBUG_INFO, "BootMenuOptionNumber (%d) should not be same to LoadOptionNumberUnassigned(%d).\n", mBootMenuOptionNumber, LoadOptionNumberUnassigned)); } - +#if 0 // // Boot Manager Menu // @@ -375,6 +374,7 @@ RegisterDefaultBootOption ( (VOID **) &LoadedImage ); DevicePath = AppendDevicePathNode (DevicePathFromHandle (LoadedImage->DeviceHandle), (EFI_DEVICE_PATH_PROTOCOL *) &FileNode); +#endif } -- cgit v1.2.3