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:
@ -2752,35 +2752,6 @@ RunCommand(
|
||||
|
||||
|
||||
STATIC CONST UINT16 InvalidChars[] = {L'*', L'?', L'<', L'>', L'\\', L'/', L'\"', 0x0001, 0x0002};
|
||||
/**
|
||||
Function determines if the CommandName COULD be a valid command. It does not determine whether
|
||||
this is a valid command. It only checks for invalid characters.
|
||||
|
||||
@param[in] CommandName The name to check
|
||||
|
||||
@retval TRUE CommandName could be a command name
|
||||
@retval FALSE CommandName could not be a valid command name
|
||||
**/
|
||||
BOOLEAN
|
||||
IsValidCommandName(
|
||||
IN CONST CHAR16 *CommandName
|
||||
)
|
||||
{
|
||||
UINTN Count;
|
||||
if (CommandName == NULL) {
|
||||
ASSERT(FALSE);
|
||||
return (FALSE);
|
||||
}
|
||||
for ( Count = 0
|
||||
; Count < sizeof(InvalidChars) / sizeof(InvalidChars[0])
|
||||
; Count++
|
||||
){
|
||||
if (ScanMem16(CommandName, StrSize(CommandName), InvalidChars[Count]) != NULL) {
|
||||
return (FALSE);
|
||||
}
|
||||
}
|
||||
return (TRUE);
|
||||
}
|
||||
|
||||
/**
|
||||
Function to process a NSH script file via SHELL_FILE_HANDLE.
|
||||
|
Reference in New Issue
Block a user