]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c
[Description]:
[mirror_edk2.git] / IntelFrameworkPkg / Library / FrameworkHiiLib / HiiLib.c
index 9f572624a145e64cc70de47a8c0f4df2f852a8ca..01530461a1b5057dd165b7962b51d9dc0048c931 100644 (file)
@@ -159,42 +159,6 @@ HiiLibAddPackages (
   return Status;\r
 }\r
 \r
-EFI_STATUS\r
-EFIAPI\r
-HiiLibAddFontPackageToHiiDatabase (\r
-  IN       UINTN               FontSize,\r
-  IN CONST UINT8               *FontBinary,\r
-  IN CONST EFI_GUID            *GuidId,\r
-  OUT      EFI_HII_HANDLE      *HiiHandle OPTIONAL\r
-  )\r
-{\r
-  EFI_STATUS            Status;\r
-  EFI_HII_FONT_PACK     *FontPack;\r
-  UINT8                 *Location;\r
-\r
-  FontPack        = AllocateZeroPool (sizeof (EFI_HII_FONT_PACK) + FontSize);\r
-  ASSERT (FontPack != NULL);\r
-\r
-  FontPack->Header.Length         = (UINT32) (sizeof (EFI_HII_FONT_PACK) + FontSize);\r
-  FontPack->Header.Type           = EFI_HII_FONT;\r
-  FontPack->NumberOfNarrowGlyphs  = (UINT16) (FontSize / sizeof (EFI_NARROW_GLYPH));\r
-\r
-  Location                        = (UINT8 *) (&FontPack->NumberOfWideGlyphs + sizeof (UINT8));\r
-  CopyMem (Location, FontBinary, FontSize);\r
-\r
-\r
-  //\r
-  // Register our Fonts into the global database\r
-  //\r
-  Status = HiiLibAddPackages (1, NULL, HiiHandle, NULL, FontPack);\r
-  //\r
-  // Free the font database\r
-  //\r
-  FreePool (FontPack);\r
-\r
-  return Status;  \r
-}\r
-\r
 VOID\r
 EFIAPI\r
 HiiLibRemovePackages (\r