From c4ed6b25446485be9d832fca3ab0df3430f39c53 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Thu, 14 Jul 2016 14:35:35 +0800 Subject: MdeModulePkg BootMaint: remove set but unused variables (Integrate commit 8192be265ee142d4a71cc9024a2ce0060a3d686d from master branch) Cc: Feng Tian Cc: Star Zeng Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Eric Dong Reviewed-by: Jordan Justen Reviewed-by: Star Zeng Reviewed-by: Feng Tian Reviewed-by: Jeff Fan --- MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c | 7 ------- MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c | 2 -- 2 files changed, 9 deletions(-) diff --git a/MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c b/MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c index 0a187f5696..98c46668f1 100644 --- a/MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c +++ b/MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c @@ -552,9 +552,6 @@ BootMaintCallback ( BMM_CALLBACK_DATA *Private; BM_MENU_ENTRY *NewMenuEntry; BMM_FAKE_NV_DATA *CurrentFakeNVMap; - UINTN OldValue; - UINTN NewValue; - UINTN Number; UINTN Index; // @@ -574,10 +571,6 @@ BootMaintCallback ( return EFI_UNSUPPORTED; } - OldValue = 0; - NewValue = 0; - Number = 0; - Private = BMM_CALLBACK_DATA_FROM_THIS (This); // diff --git a/MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c b/MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c index c9df7baeb6..73f451c43c 100644 --- a/MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c +++ b/MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c @@ -607,7 +607,6 @@ UpdateOrderPage ( UINT16 Index; UINT16 OptionIndex; VOID *OptionsOpCodeHandle; - BM_LOAD_CONTEXT *NewLoadContext; BOOLEAN BootOptionFound; UINT32 *OptionOrder; EFI_QUESTION_ID QuestionId; @@ -647,7 +646,6 @@ UpdateOrderPage ( BootOptionFound = FALSE; for (Index = 0; Index < OptionMenu->MenuNumber; Index++) { NewMenuEntry = BOpt_GetMenuEntry (OptionMenu, Index); - NewLoadContext = (BM_LOAD_CONTEXT *) NewMenuEntry->VariableContext; if ((UINT32) (NewMenuEntry->OptionNumber + 1) == OptionOrder[OptionIndex]) { BootOptionFound = TRUE; break; -- cgit v1.2.3