]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
Revert "ShellPkg: Add Shell[Get|Set]RawCmdLine to ShellCommandLib"
[mirror_edk2.git] / ShellPkg / Library / UefiShellCommandLib / UefiShellCommandLib.c
index 7fe908cb57cd556c1ef254a066665c75d97bcef9..ac77111ef93c6630e9d53214cd1c527f09e0d989 100644 (file)
@@ -30,7 +30,6 @@ STATIC UINTN                              mProfileListSize;
 STATIC UINTN                              mFsMaxCount = 0;\r
 STATIC UINTN                              mBlkMaxCount = 0;\r
 STATIC BUFFER_LIST                        mFileHandleList;\r
-STATIC CHAR16                             *mRawCmdLine = NULL;\r
 \r
 STATIC CONST CHAR8 Hex[] = {\r
   '0',\r
@@ -1869,50 +1868,6 @@ ShellFileHandleEof(
   return (RetVal);\r
 }\r
 \r
-/**\r
-  Function to get the original CmdLine string for current command.\r
-\r
-  @return     A pointer to the buffer of the original command string.\r
-              It's the caller's responsibility to free the buffer.\r
-**/\r
-CHAR16*\r
-EFIAPI\r
-ShellGetRawCmdLine (\r
-  VOID\r
-  )\r
-{\r
-  if (mRawCmdLine == NULL) {\r
-    return NULL;\r
-  } else {\r
-    return AllocateCopyPool(StrSize(mRawCmdLine), mRawCmdLine);\r
-  }\r
-}\r
-\r
-/**\r
-  Function to store the raw command string.\r
-\r
-  The alias and variables have been replaced and spaces are trimmed.\r
-\r
-  @param[in] CmdLine     the command line string to store.\r
-**/\r
-VOID\r
-EFIAPI\r
-ShellSetRawCmdLine (\r
-  IN CONST CHAR16     *CmdLine\r
-  )\r
-{\r
-  SHELL_FREE_NON_NULL(mRawCmdLine);\r
-\r
-  if (CmdLine != NULL) {\r
-    //\r
-    // The spaces in the beginning and end are trimmed.\r
-    //\r
-    ASSERT (*CmdLine != L' ');\r
-    ASSERT (CmdLine[StrLen (CmdLine) - 1] != L' ');\r
-    mRawCmdLine = AllocateCopyPool (StrSize(CmdLine), CmdLine);\r
-  }\r
-}\r
-\r
 /**\r
   Frees any BUFFER_LIST defined type.\r
 \r