]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c
MdeModulePkg: Use BmCharToUint in BmIsKeyOptionVariable
[mirror_edk2.git] / MdeModulePkg / Library / UefiBootManagerLib / BmLoadOption.c
index 07e62496291418e5d732714cea3092f4620ef291..6fcd23b6aba337adb26922a0b3f606ddf88eef08 100644 (file)
@@ -586,29 +586,6 @@ EfiBootManagerDeleteLoadOptionVariable (
   return Status;\r
 }\r
 \r
-/**\r
-  Convert a single character to number.\r
-  It assumes the input Char is in the scope of L'0' ~ L'9' and L'A' ~ L'F'\r
-\r
-  @param    Char   The input char which need to convert to int.\r
-**/\r
-UINTN\r
-BmCharToUint (\r
-  IN CHAR16                           Char\r
-  )\r
-{\r
-  if ((Char >= L'0') && (Char <= L'9')) {\r
-    return (UINTN) (Char - L'0');\r
-  }\r
-\r
-  if ((Char >= L'A') && (Char <= L'F')) {\r
-    return (UINTN) (Char - L'A' + 0xA);\r
-  }\r
-\r
-  ASSERT (FALSE);\r
-  return (UINTN) -1;\r
-}\r
-\r
 /**\r
   Returns the size of a device path in bytes.\r
 \r