Removes some unused assigned variables.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> Reviewed-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16189 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -2049,10 +2049,8 @@ UiDisplayMenu (
|
||||
UINTN TopRow;
|
||||
UINTN BottomRow;
|
||||
UINTN Index;
|
||||
UINT16 Width;
|
||||
CHAR16 *StringPtr;
|
||||
CHAR16 *OptionString;
|
||||
CHAR16 *OutputString;
|
||||
CHAR16 *HelpString;
|
||||
CHAR16 *HelpHeaderString;
|
||||
CHAR16 *HelpBottomString;
|
||||
@@ -2069,10 +2067,8 @@ UiDisplayMenu (
|
||||
UI_MENU_OPTION *MenuOption;
|
||||
UI_MENU_OPTION *NextMenuOption;
|
||||
UI_MENU_OPTION *SavedMenuOption;
|
||||
UI_MENU_OPTION *PreviousMenuOption;
|
||||
UI_CONTROL_FLAG ControlFlag;
|
||||
UI_SCREEN_OPERATION ScreenOperation;
|
||||
UINT16 DefaultId;
|
||||
FORM_DISPLAY_ENGINE_STATEMENT *Statement;
|
||||
BROWSER_HOT_KEY *HotKey;
|
||||
UINTN HelpPageIndex;
|
||||
@@ -2087,7 +2083,6 @@ UiDisplayMenu (
|
||||
UINT16 BottomLineWidth;
|
||||
EFI_STRING_ID HelpInfo;
|
||||
UI_EVENT_TYPE EventType;
|
||||
FORM_DISPLAY_ENGINE_STATEMENT *InitialHighlight;
|
||||
BOOLEAN SkipHighLight;
|
||||
|
||||
EventType = UIEventNone;
|
||||
@@ -2098,7 +2093,6 @@ UiDisplayMenu (
|
||||
OptionString = NULL;
|
||||
ScreenOperation = UiNoOperation;
|
||||
NewLine = TRUE;
|
||||
DefaultId = 0;
|
||||
HelpPageCount = 0;
|
||||
HelpLine = 0;
|
||||
RowCount = 0;
|
||||
@@ -2109,24 +2103,20 @@ UiDisplayMenu (
|
||||
EachLineWidth = 0;
|
||||
HeaderLineWidth = 0;
|
||||
BottomLineWidth = 0;
|
||||
OutputString = NULL;
|
||||
UpArrow = FALSE;
|
||||
DownArrow = FALSE;
|
||||
SkipValue = 0;
|
||||
SkipHighLight = FALSE;
|
||||
|
||||
NextMenuOption = NULL;
|
||||
PreviousMenuOption = NULL;
|
||||
SavedMenuOption = NULL;
|
||||
HotKey = NULL;
|
||||
Repaint = TRUE;
|
||||
MenuOption = NULL;
|
||||
gModalSkipColumn = (CHAR16) (gStatementDimensions.RightColumn - gStatementDimensions.LeftColumn) / 6;
|
||||
InitialHighlight = gFormData->HighLightedStatement;
|
||||
|
||||
ZeroMem (&Key, sizeof (EFI_INPUT_KEY));
|
||||
|
||||
Width = (UINT16)gOptionBlockWidth - 1;
|
||||
TopRow = gStatementDimensions.TopRow + SCROLL_ARROW_HEIGHT;
|
||||
BottomRow = gStatementDimensions.BottomRow - SCROLL_ARROW_HEIGHT - 1;
|
||||
|
||||
|
@@ -439,7 +439,6 @@ GetNumericInput (
|
||||
IN UI_MENU_OPTION *MenuOption
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
UINTN Column;
|
||||
UINTN Row;
|
||||
CHAR16 InputText[MAX_NUMERIC_INPUT_WIDTH];
|
||||
@@ -685,7 +684,7 @@ GetNumericInput (
|
||||
goto TheKey2;
|
||||
}
|
||||
|
||||
Status = WaitForKeyStroke (&Key);
|
||||
WaitForKeyStroke (&Key);
|
||||
|
||||
TheKey2:
|
||||
switch (Key.UnicodeChar) {
|
||||
@@ -1118,7 +1117,6 @@ GetSelectionInputPopUp (
|
||||
IN UI_MENU_OPTION *MenuOption
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_INPUT_KEY Key;
|
||||
UINTN Index;
|
||||
CHAR16 *StringPtr;
|
||||
@@ -1351,7 +1349,7 @@ GetSelectionInputPopUp (
|
||||
goto TheKey;
|
||||
}
|
||||
|
||||
Status = WaitForKeyStroke (&Key);
|
||||
WaitForKeyStroke (&Key);
|
||||
|
||||
TheKey:
|
||||
switch (Key.UnicodeChar) {
|
||||
@@ -1505,7 +1503,6 @@ TheKey:
|
||||
} else {
|
||||
gUserInput->InputValue.Buffer = ReturnValue;
|
||||
gUserInput->InputValue.BufferLen = Question->CurrentValue.BufferLen;
|
||||
Status = EFI_SUCCESS;
|
||||
}
|
||||
} else {
|
||||
ASSERT (CurrentOption != NULL);
|
||||
@@ -1514,7 +1511,6 @@ TheKey:
|
||||
return EFI_DEVICE_ERROR;
|
||||
} else {
|
||||
SetValuesByType (&gUserInput->InputValue.Value, &CurrentOption->OptionOpCode->Value, gUserInput->InputValue.Type);
|
||||
Status = EFI_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -955,7 +955,6 @@ ProcessOptions (
|
||||
UINTN Index2;
|
||||
UINT8 *ValueArray;
|
||||
UINT8 ValueType;
|
||||
EFI_STRING_ID StringId;
|
||||
EFI_IFR_ORDERED_LIST *OrderList;
|
||||
BOOLEAN ValueInvalid;
|
||||
|
||||
@@ -964,7 +963,6 @@ ProcessOptions (
|
||||
StringPtr = NULL;
|
||||
Character[1] = L'\0';
|
||||
*OptionString = NULL;
|
||||
StringId = 0;
|
||||
ValueInvalid = FALSE;
|
||||
|
||||
ZeroMem (FormattedNumber, 21 * sizeof (CHAR16));
|
||||
|
Reference in New Issue
Block a user