From: shenglei Date: Fri, 7 Sep 2018 01:52:21 +0000 (+0800) Subject: ShellPkg Shell: Remove an unused global variable X-Git-Tag: edk2-stable201903~1061 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=98257f9820723d81d57548fb193afe41c3da179c ShellPkg Shell: Remove an unused global variable The unused global variable InvalidChars is removed. It is only used in the function IsValidCommandName which was removed previously. https://bugzilla.tianocore.org/show_bug.cgi?id=1066 Cc: Jaben Carsey Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: shenglei Reviewed-by: Ruiyu Ni --- diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c index 397cfd1994..3f3bcbb4b0 100644 --- a/ShellPkg/Application/Shell/Shell.c +++ b/ShellPkg/Application/Shell/Shell.c @@ -2750,9 +2750,6 @@ RunCommand( return (RunShellCommand(CmdLine, NULL)); } - -STATIC CONST UINT16 InvalidChars[] = {L'*', L'?', L'<', L'>', L'\\', L'/', L'\"', 0x0001, 0x0002}; - /** Function to process a NSH script file via SHELL_FILE_HANDLE.