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>
}\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