]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/ShellLib: Remove unused macros
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 26 Jul 2017 09:34:01 +0000 (17:34 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Thu, 27 Jul 2017 07:45:26 +0000 (15:45 +0800)
MAX_FILE_NAME_LEN and FIND_XXXXX_FILE_BUFFER_SIZE are not used
by ShellLib so remove them.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
ShellPkg/Include/Library/ShellLib.h
ShellPkg/Library/UefiShellLib/UefiShellLib.c

index 9b611d8016a8b54874f9657dcf1e612ce2596ef1..268a767b70c44ae63f4bbde9ce6fa48389ec2c58 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provides interface to shell functionality for shell commands and applications.\r
 \r
-  Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -32,9 +32,6 @@
     }                                 \\r
   } while(FALSE)\r
 \r
-// (20 * (6+5+2))+1) unicode characters from EFI FAT spec (doubled for bytes)\r
-#define MAX_FILE_NAME_LEN 512\r
-\r
 extern EFI_SHELL_PARAMETERS_PROTOCOL *gEfiShellParametersProtocol;\r
 extern EFI_SHELL_PROTOCOL            *gEfiShellProtocol;\r
 \r
index c3a67c3be7685379c7a39d4f7120d0f9db7264cb..64565f81d8e02160371560e290d7cf4ba81b1e86 100644 (file)
@@ -18,8 +18,6 @@
 #include <Library/SortLib.h>\r
 #include <Library/BaseLib.h>\r
 \r
-#define FIND_XXXXX_FILE_BUFFER_SIZE (SIZE_OF_EFI_FILE_INFO + MAX_FILE_NAME_LEN)\r
-\r
 //\r
 // globals...\r
 //\r