summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshenglei <shenglei.zhang@intel.com>2018-08-08 16:30:11 +0800
committerStar Zeng <star.zeng@intel.com>2018-08-21 16:29:11 +0800
commitae195de0a3c8a0f773e5cd3dc061799101115df1 (patch)
tree198030d7c6429c24cf6b502a5e6d14f965172804
parent4750f754fc573b9a7dd8057dbea94757fffdbad6 (diff)
downloadedk2-ae195de0a3c8a0f773e5cd3dc061799101115df1.zip
edk2-ae195de0a3c8a0f773e5cd3dc061799101115df1.tar.gz
edk2-ae195de0a3c8a0f773e5cd3dc061799101115df1.tar.bz2
MdeModulePkg SetupBrowserDxe: Remove a redundant function
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>
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
index 3d28e7a..042bd4b 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
@@ -452,39 +452,6 @@ IntializeBrowserStorage (
}
}
-/**
- Check whether exist device path info in the ConfigHdr string.
-
- @param String UEFI configuration string
-
- @retval TRUE Device Path exist.
- @retval FALSE Not exist device path info.
-
-**/
-BOOLEAN
-IsDevicePathExist (
- IN EFI_STRING String
- )
-{
- UINTN Length;
-
- for (; (*String != 0 && StrnCmp (String, L"PATH=", StrLen (L"PATH=")) != 0); String++);
- if (*String == 0) {
- return FALSE;
- }
-
- String += StrLen (L"PATH=");
- if (*String == 0) {
- return FALSE;
- }
-
- for (Length = 0; *String != 0 && *String != L'&'; String++, Length++);
- if (((Length + 1) / 2) < sizeof (EFI_DEVICE_PATH_PROTOCOL)) {
- return FALSE;
- }
-
- return TRUE;
-}
/**
Allocate a FORMSET_STORAGE data structure and insert to FormSet Storage List.