ShellPkg Shell: Remove redundant functions
The redundant functions which are never called have been removed. They are InternalShellProtocolDebugPrintMessage, UpdateFileName,RemoveFileTag and IsValidCommandName. https://bugzilla.tianocore.org/show_bug.cgi?id=1066 Cc: Jaben Carsey <jaben.carsey@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: shenglei <shenglei.zhang@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
@ -626,30 +626,6 @@ FixVarName (
|
||||
return (FixFileName(Copy));
|
||||
}
|
||||
|
||||
/**
|
||||
Remove the unicode file tag from the begining of the file buffer since that will not be
|
||||
used by StdIn.
|
||||
|
||||
@param[in] Handle Pointer to the handle of the file to be processed.
|
||||
|
||||
@retval EFI_SUCCESS The unicode file tag has been moved successfully.
|
||||
**/
|
||||
EFI_STATUS
|
||||
RemoveFileTag(
|
||||
IN SHELL_FILE_HANDLE *Handle
|
||||
)
|
||||
{
|
||||
UINTN CharSize;
|
||||
CHAR16 CharBuffer;
|
||||
|
||||
CharSize = sizeof(CHAR16);
|
||||
CharBuffer = 0;
|
||||
gEfiShellProtocol->ReadFile(*Handle, &CharSize, &CharBuffer);
|
||||
if (CharBuffer != gUnicodeFileTag) {
|
||||
gEfiShellProtocol->SetFilePosition(*Handle, 0);
|
||||
}
|
||||
return (EFI_SUCCESS);
|
||||
}
|
||||
|
||||
/**
|
||||
Write the unicode file tag to the specified file.
|
||||
|
Reference in New Issue
Block a user