]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg SetupBrowserDxe: Remove a redundant function
authorshenglei <shenglei.zhang@intel.com>
Wed, 8 Aug 2018 08:30:11 +0000 (16:30 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 21 Aug 2018 08:29:11 +0000 (16:29 +0800)
The function IsDevicePathExist that is never called
has been removed.
https://bugzilla.tianocore.org/show_bug.cgi?id=1062

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: shenglei <shenglei.zhang@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
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