]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
MdeModulePkg SetupBrowserDxe: Remove a redundant function
[mirror_edk2.git] / MdeModulePkg / Universal / SetupBrowserDxe / IfrParse.c
index 3d28e7aa50b47f5a57d38db7cb3a72959d8f9a3b..042bd4b30da6a5fda62d433227f0fa2d3566859c 100644 (file)
@@ -452,39 +452,6 @@ IntializeBrowserStorage (
   }\r
 }\r
 \r
-/**\r
-  Check whether exist device path info in the ConfigHdr string.\r
-\r
-  @param  String                 UEFI configuration string\r
-\r
-  @retval TRUE                   Device Path exist.\r
-  @retval FALSE                  Not exist device path info.\r
-\r
-**/\r
-BOOLEAN\r
-IsDevicePathExist (\r
-  IN  EFI_STRING                   String\r
-  )\r
-{\r
-  UINTN                    Length;\r
-\r
-  for (; (*String != 0 && StrnCmp (String, L"PATH=", StrLen (L"PATH=")) != 0); String++);\r
-  if (*String == 0) {\r
-    return FALSE;\r
-  }\r
-\r
-  String += StrLen (L"PATH=");\r
-  if (*String == 0) {\r
-    return FALSE;\r
-  }\r
-\r
-  for (Length = 0; *String != 0 && *String != L'&'; String++, Length++);\r
-  if (((Length + 1) / 2) < sizeof (EFI_DEVICE_PATH_PROTOCOL)) {\r
-    return FALSE;\r
-  }\r
-\r
-  return TRUE;\r
-}\r
 \r
 /**\r
   Allocate a FORMSET_STORAGE data structure and insert to FormSet Storage List.\r