diff options
author | Eric Dong <eric.dong@intel.com> | 2015-07-31 02:12:54 +0000 |
---|---|---|
committer | ydong10 <ydong10@Edk2> | 2015-07-31 02:12:54 +0000 |
commit | b44b55a2dfc554015215919bf98f03d8fb386d34 (patch) | |
tree | 5977dfaf74cfc7d60d74044846ee3f0582969598 /MdeModulePkg/Application/UiApp/BootMaint | |
parent | e5632f3d86c4751f94667fcfe9f238536fe6873f (diff) | |
download | edk2-platforms-b44b55a2dfc554015215919bf98f03d8fb386d34.tar.xz |
Remove the useless code to fix build failure caused by error depend on IntelFrameworkModulePkg.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18120 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Application/UiApp/BootMaint')
-rw-r--r-- | MdeModulePkg/Application/UiApp/BootMaint/BootOption.c | 58 | ||||
-rw-r--r-- | MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c | 29 |
2 files changed, 0 insertions, 87 deletions
diff --git a/MdeModulePkg/Application/UiApp/BootMaint/BootOption.c b/MdeModulePkg/Application/UiApp/BootMaint/BootOption.c index a5bd796194..1ad93bf6cf 100644 --- a/MdeModulePkg/Application/UiApp/BootMaint/BootOption.c +++ b/MdeModulePkg/Application/UiApp/BootMaint/BootOption.c @@ -238,13 +238,8 @@ BOpt_FindFileSystem ( UINT16 *TempStr;
UINTN OptionNumber;
VOID *Buffer;
- EFI_LEGACY_BIOS_PROTOCOL *LegacyBios;
- UINT16 DeviceType;
- BBS_BBS_DEVICE_PATH BbsDevicePathNode;
- EFI_DEVICE_PATH_PROTOCOL *DevicePath;
BOOLEAN RemovableMedia;
-
NoSimpleFsHandles = 0;
NoLoadFileHandles = 0;
OptionNumber = 0;
@@ -444,59 +439,6 @@ BOpt_FindFileSystem ( }
//
- // Add Legacy Boot Option Support Here
- //
- Status = gBS->LocateProtocol (
- &gEfiLegacyBiosProtocolGuid,
- NULL,
- (VOID **) &LegacyBios
- );
- if (!EFI_ERROR (Status)) {
-
- for (Index = BBS_TYPE_FLOPPY; Index <= BBS_TYPE_EMBEDDED_NETWORK; Index++) {
- MenuEntry = BOpt_CreateMenuEntry (BM_FILE_CONTEXT_SELECT);
- if (NULL == MenuEntry) {
- return EFI_OUT_OF_RESOURCES;
- }
-
- FileContext = (BM_FILE_CONTEXT *) MenuEntry->VariableContext;
-
- FileContext->IsRemovableMedia = FALSE;
- FileContext->IsLoadFile = TRUE;
- FileContext->IsBootLegacy = TRUE;
- DeviceType = (UINT16) Index;
- BbsDevicePathNode.Header.Type = BBS_DEVICE_PATH;
- BbsDevicePathNode.Header.SubType = BBS_BBS_DP;
- SetDevicePathNodeLength (
- &BbsDevicePathNode.Header,
- sizeof (BBS_BBS_DEVICE_PATH)
- );
- BbsDevicePathNode.DeviceType = DeviceType;
- BbsDevicePathNode.StatusFlag = 0;
- BbsDevicePathNode.String[0] = 0;
- DevicePath = AppendDevicePathNode (
- EndDevicePath,
- (EFI_DEVICE_PATH_PROTOCOL *) &BbsDevicePathNode
- );
-
- FileContext->DevicePath = DevicePath;
- MenuEntry->HelpString = UiDevicePathToStr (FileContext->DevicePath);
-
- TempStr = MenuEntry->HelpString;
- MenuEntry->DisplayString = AllocateZeroPool (MAX_CHAR);
- ASSERT (MenuEntry->DisplayString != NULL);
- UnicodeSPrint (
- MenuEntry->DisplayString,
- MAX_CHAR,
- L"Boot Legacy [%s]",
- TempStr
- );
- MenuEntry->OptionNumber = OptionNumber;
- OptionNumber++;
- InsertTailList (&FsOptionMenu.Head, &MenuEntry->Link);
- }
- }
- //
// Remember how many file system options are here
//
FsOptionMenu.MenuNumber = OptionNumber;
diff --git a/MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c b/MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c index ea96d132e5..938912bfbe 100644 --- a/MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c +++ b/MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c @@ -232,35 +232,6 @@ UpdateConCOMPage ( UpdatePageEnd (CallbackData);
}
-/**
-
- IsShellNodeDevicePath checks for the Shell device path.
- If it's the shell device path then return TRUE otherwise
- return FALSE.
-
- @param DevicePath The DevicePath to check
-
- @retval TRUE DevicePath is Shell
- @retval FALSE DevicePath is not Shell
-
-**/
-BOOLEAN
-IsShellNodeDevicePath(
- IN EFI_DEVICE_PATH_PROTOCOL *FilePath
- )
-{
-
- EFI_DEVICE_PATH_PROTOCOL *Node;
-
- for (Node = FilePath; !IsDevicePathEnd(Node); Node = NextDevicePathNode(Node))
- {
- if ((DevicePathType (Node) == MEDIA_DEVICE_PATH) && (DevicePathSubType (Node) == MEDIA_PIWG_FW_FILE_DP)) {
- if (!CompareMem(PcdGetPtr(PcdShellFile), &(((MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *)Node)->FvFileName), sizeof(EFI_GUID)))
- return TRUE;
- }
- }
- return FALSE;
-}
/**
Create a list of boot option from global BootOptionMenu. It
|