SignedCapsulePkg: Remove redundant things in inf,.h and .c files

Two redundant library classes have been removed.
The redundant function "IsSystemFmp" has been removed.
https://bugzilla.tianocore.org/show_bug.cgi?id=1067

v2: Remove DxeServicesLib from SystemFirmwareUpdateDxe.inf.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: shenglei <shenglei.zhang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
shenglei 2018-08-10 14:07:18 +08:00 committed by Star Zeng
parent 43fe4c4052
commit 90b3f171a7
4 changed files with 0 additions and 31 deletions

View File

@ -343,31 +343,4 @@ InitializePrivateData (
return EFI_SUCCESS;
}
/**
Return if this FMP is a system FMP or a device FMP, based upon FmpImageInfo.
@param[in] FmpImageInfo A pointer to EFI_FIRMWARE_IMAGE_DESCRIPTOR
@retval TRUE It is a system FMP.
@retval FALSE It is a device FMP.
**/
BOOLEAN
IsSystemFmp (
IN EFI_FIRMWARE_IMAGE_DESCRIPTOR *FmpImageInfo
)
{
GUID *Guid;
UINTN Count;
UINTN Index;
Guid = PcdGetPtr(PcdSystemFmpCapsuleImageTypeIdGuid);
Count = PcdGetSize(PcdSystemFmpCapsuleImageTypeIdGuid) / sizeof(GUID);
for (Index = 0; Index < Count; Index++, Guid++) {
if (CompareGuid(&FmpImageInfo->ImageTypeId, Guid)) {
return TRUE;
}
}
return FALSE;
}

View File

@ -36,7 +36,6 @@
#include <Library/UefiDriverEntryPoint.h>
#include <Library/DevicePathLib.h>
#include <Library/HobLib.h>
#include <Library/DxeServicesLib.h>
#include <Library/DxeServicesTableLib.h>
#include <Library/PlatformFlashAccessLib.h>
#include <Library/EdkiiSystemCapsuleLib.h>

View File

@ -50,9 +50,7 @@
HobLib
UefiRuntimeServicesTableLib
UefiDriverEntryPoint
DxeServicesLib
DxeServicesTableLib
PrintLib
EdkiiSystemCapsuleLib
[Pcd]

View File

@ -51,7 +51,6 @@
HobLib
UefiRuntimeServicesTableLib
UefiDriverEntryPoint
DxeServicesLib
EdkiiSystemCapsuleLib
PlatformFlashAccessLib
IniParsingLib