diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c index 3d28e7aa50..042bd4b30d 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.