diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c index 4a1770eb1f..6ccbc28e85 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c @@ -318,11 +318,6 @@ InitializeTerminalConsoleTextMode ( ASSERT (TextModeCount != NULL); - // - // Here we make sure that the final mode exposed does not include the duplicated modes, - // and does not include the invalid modes which exceed the max column and row. - // Reserve 2 modes for 80x25, 80x50 of terminal console. - // TextModeData = AllocateCopyPool (sizeof (mTerminalConsoleModeData), mTerminalConsoleModeData); if (TextModeData == NULL) { return NULL;