summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShellPkg/Include/Library/ShellCommandLib.h23
-rw-r--r--ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c45
2 files changed, 0 insertions, 68 deletions
diff --git a/ShellPkg/Include/Library/ShellCommandLib.h b/ShellPkg/Include/Library/ShellCommandLib.h
index 44eccc4..5c5e241 100644
--- a/ShellPkg/Include/Library/ShellCommandLib.h
+++ b/ShellPkg/Include/Library/ShellCommandLib.h
@@ -670,29 +670,6 @@ ShellFileHandleEof(
IN SHELL_FILE_HANDLE Handle
);
-/**
- Function to get the original CmdLine string for current command.
-
- @return A pointer to the buffer of the original command string.
- It's the caller's responsibility to free the buffer.
-**/
-CHAR16*
-EFIAPI
-ShellGetRawCmdLine (
- VOID
- );
-
-/**
- Function to store the orgignal command string into mOriginalCmdLine.
-
- @param[in] CmdLine the command line string to store.
-**/
-VOID
-EFIAPI
-ShellSetRawCmdLine (
- IN CONST CHAR16 *CmdLine
- );
-
typedef struct {
LIST_ENTRY Link;
void *Buffer;
diff --git a/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c b/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
index 7fe908c..ac77111 100644
--- a/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
+++ b/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
@@ -30,7 +30,6 @@ STATIC UINTN mProfileListSize;
STATIC UINTN mFsMaxCount = 0;
STATIC UINTN mBlkMaxCount = 0;
STATIC BUFFER_LIST mFileHandleList;
-STATIC CHAR16 *mRawCmdLine = NULL;
STATIC CONST CHAR8 Hex[] = {
'0',
@@ -1870,50 +1869,6 @@ ShellFileHandleEof(
}
/**
- Function to get the original CmdLine string for current command.
-
- @return A pointer to the buffer of the original command string.
- It's the caller's responsibility to free the buffer.
-**/
-CHAR16*
-EFIAPI
-ShellGetRawCmdLine (
- VOID
- )
-{
- if (mRawCmdLine == NULL) {
- return NULL;
- } else {
- return AllocateCopyPool(StrSize(mRawCmdLine), mRawCmdLine);
- }
-}
-
-/**
- Function to store the raw command string.
-
- The alias and variables have been replaced and spaces are trimmed.
-
- @param[in] CmdLine the command line string to store.
-**/
-VOID
-EFIAPI
-ShellSetRawCmdLine (
- IN CONST CHAR16 *CmdLine
- )
-{
- SHELL_FREE_NON_NULL(mRawCmdLine);
-
- if (CmdLine != NULL) {
- //
- // The spaces in the beginning and end are trimmed.
- //
- ASSERT (*CmdLine != L' ');
- ASSERT (CmdLine[StrLen (CmdLine) - 1] != L' ');
- mRawCmdLine = AllocateCopyPool (StrSize(CmdLine), CmdLine);
- }
-}
-
-/**
Frees any BUFFER_LIST defined type.
@param[in] List The BUFFER_LIST object to free.