]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg/PrePi: remove unused GetPlatformPpi() function
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 13 Nov 2017 15:11:23 +0000 (15:11 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 23 Nov 2017 16:05:02 +0000 (16:05 +0000)
Remove GetPlatformPpi() from PrePi: it is not used anywhere.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
ArmVirtPkg/PrePi/PrePi.c
ArmVirtPkg/PrePi/PrePi.h

index 3679087aec4d290301bcb14d426a9a7e86a75ee9..c4fa979c43efa3afb08a2d2150f98a16ea7732cc 100755 (executable)
@@ -35,30 +35,6 @@ ProcessLibraryConstructorList (
   VOID\r
   );\r
 \r
-EFI_STATUS\r
-GetPlatformPpi (\r
-  IN  EFI_GUID  *PpiGuid,\r
-  OUT VOID      **Ppi\r
-  )\r
-{\r
-  UINTN                   PpiListSize;\r
-  UINTN                   PpiListCount;\r
-  EFI_PEI_PPI_DESCRIPTOR  *PpiList;\r
-  UINTN                   Index;\r
-\r
-  PpiListSize = 0;\r
-  ArmPlatformGetPlatformPpiList (&PpiListSize, &PpiList);\r
-  PpiListCount = PpiListSize / sizeof(EFI_PEI_PPI_DESCRIPTOR);\r
-  for (Index = 0; Index < PpiListCount; Index++, PpiList++) {\r
-    if (CompareGuid (PpiList->Guid, PpiGuid) == TRUE) {\r
-      *Ppi = PpiList->Ppi;\r
-      return EFI_SUCCESS;\r
-    }\r
-  }\r
-\r
-  return EFI_NOT_FOUND;\r
-}\r
-\r
 VOID\r
 PrePiMain (\r
   IN  UINTN                     UefiMemoryBase,\r
index d3189c0b8a6fdd7e400bc146fe29180d06a7cc9e..153f06b9c7fb8ac6701931bc72654cb95831c510 100644 (file)
@@ -61,12 +61,6 @@ BuildMemoryTypeInformationHob (
   VOID\r
   );\r
 \r
-EFI_STATUS\r
-GetPlatformPpi (\r
-  IN  EFI_GUID  *PpiGuid,\r
-  OUT VOID      **Ppi\r
-  );\r
-\r
 // Initialize the Architecture specific controllers\r
 VOID\r
 ArchInitialize (\r