mirror of https://github.com/acidanthera/audk.git
EdkCompatibilityPkg: UefiEfiIfrSupportLib: remove set but not used variables
Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com>
This commit is contained in:
parent
6051996ccc
commit
5ccd43c817
|
@ -522,7 +522,6 @@ Returns:
|
||||||
EFI_HII_DATABASE_PROTOCOL *HiiDatabase;
|
EFI_HII_DATABASE_PROTOCOL *HiiDatabase;
|
||||||
EFI_HII_PACKAGE_LIST_HEADER *HiiPackageList;
|
EFI_HII_PACKAGE_LIST_HEADER *HiiPackageList;
|
||||||
UINT8 *Package;
|
UINT8 *Package;
|
||||||
UINT8 *FormSet;
|
|
||||||
UINT8 *OpCodeData;
|
UINT8 *OpCodeData;
|
||||||
UINT32 Offset;
|
UINT32 Offset;
|
||||||
UINT32 Offset2;
|
UINT32 Offset2;
|
||||||
|
@ -572,7 +571,6 @@ Returns:
|
||||||
//
|
//
|
||||||
Offset = sizeof (EFI_HII_PACKAGE_LIST_HEADER);
|
Offset = sizeof (EFI_HII_PACKAGE_LIST_HEADER);
|
||||||
Offset2 = 0;
|
Offset2 = 0;
|
||||||
FormSet = NULL;
|
|
||||||
EfiCopyMem (&PackageListLength, &HiiPackageList->PackageLength, sizeof (UINT32));
|
EfiCopyMem (&PackageListLength, &HiiPackageList->PackageLength, sizeof (UINT32));
|
||||||
|
|
||||||
while (Offset < PackageListLength) {
|
while (Offset < PackageListLength) {
|
||||||
|
@ -660,7 +658,6 @@ Returns:
|
||||||
EFI_HII_DATABASE_PROTOCOL *HiiDatabase;
|
EFI_HII_DATABASE_PROTOCOL *HiiDatabase;
|
||||||
EFI_HII_PACKAGE_LIST_HEADER *HiiPackageList;
|
EFI_HII_PACKAGE_LIST_HEADER *HiiPackageList;
|
||||||
UINT8 *Package;
|
UINT8 *Package;
|
||||||
UINT8 *FormSet;
|
|
||||||
UINT8 *OpCodeData;
|
UINT8 *OpCodeData;
|
||||||
UINT32 Offset;
|
UINT32 Offset;
|
||||||
UINT32 Offset2;
|
UINT32 Offset2;
|
||||||
|
@ -709,7 +706,6 @@ Returns:
|
||||||
//
|
//
|
||||||
Offset = sizeof (EFI_HII_PACKAGE_LIST_HEADER);
|
Offset = sizeof (EFI_HII_PACKAGE_LIST_HEADER);
|
||||||
Offset2 = 0;
|
Offset2 = 0;
|
||||||
FormSet = NULL;
|
|
||||||
EfiCopyMem (&PackageListLength, &HiiPackageList->PackageLength, sizeof (UINT32));
|
EfiCopyMem (&PackageListLength, &HiiPackageList->PackageLength, sizeof (UINT32));
|
||||||
|
|
||||||
while (Offset < PackageListLength) {
|
while (Offset < PackageListLength) {
|
||||||
|
|
|
@ -452,9 +452,7 @@ Returns:
|
||||||
UINTN Index;
|
UINTN Index;
|
||||||
UINTN Count;
|
UINTN Count;
|
||||||
UINTN Start;
|
UINTN Start;
|
||||||
UINTN End;
|
|
||||||
UINTN Top;
|
UINTN Top;
|
||||||
UINTN Bottom;
|
|
||||||
CHAR16 *StringPtr;
|
CHAR16 *StringPtr;
|
||||||
UINTN LeftColumn;
|
UINTN LeftColumn;
|
||||||
UINTN RightColumn;
|
UINTN RightColumn;
|
||||||
|
@ -529,10 +527,8 @@ Returns:
|
||||||
// each end plus a border.
|
// each end plus a border.
|
||||||
//
|
//
|
||||||
Start = (DimensionsWidth - LargestString - 2) / 2 + LeftColumn + 1;
|
Start = (DimensionsWidth - LargestString - 2) / 2 + LeftColumn + 1;
|
||||||
End = Start + LargestString + 1;
|
|
||||||
|
|
||||||
Top = ((DimensionsHeight - NumberOfLines - 2) / 2) + TopRow - 1;
|
Top = ((DimensionsHeight - NumberOfLines - 2) / 2) + TopRow - 1;
|
||||||
Bottom = Top + NumberOfLines + 2;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Disable cursor
|
// Disable cursor
|
||||||
|
|
|
@ -485,7 +485,6 @@ CreateNumericOpCode (
|
||||||
IN OUT EFI_HII_UPDATE_DATA *Data
|
IN OUT EFI_HII_UPDATE_DATA *Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINTN Length;
|
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_IFR_NUMERIC Numeric;
|
EFI_IFR_NUMERIC Numeric;
|
||||||
MINMAXSTEP_DATA MinMaxStep;
|
MINMAXSTEP_DATA MinMaxStep;
|
||||||
|
@ -498,7 +497,6 @@ CreateNumericOpCode (
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
Length = sizeof (EFI_IFR_NUMERIC) + sizeof (EFI_IFR_DEFAULT) + sizeof (EFI_IFR_END);
|
|
||||||
if (Data->Offset + sizeof (EFI_IFR_CHECKBOX) > Data->BufferSize) {
|
if (Data->Offset + sizeof (EFI_IFR_CHECKBOX) > Data->BufferSize) {
|
||||||
return EFI_BUFFER_TOO_SMALL;
|
return EFI_BUFFER_TOO_SMALL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue