public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] ShellPkg/UefiShellDebug1CommandsLib: Remove an unused function
@ 2018-12-13  5:33 Shenglei Zhang
  2018-12-13  6:17 ` Gao, Liming
  2018-12-13 10:39 ` Laszlo Ersek
  0 siblings, 2 replies; 3+ messages in thread
From: Shenglei Zhang @ 2018-12-13  5:33 UTC (permalink / raw)
  To: edk2-devel; +Cc: Jaben Carsey, Ruiyu Ni

CharToUpper is an unused internal function, so it will be removed.

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 Zhang <shenglei.zhang@intel.com>
---
 .../UefiShellDebug1CommandsLib.c              | 28 -------------------
 1 file changed, 28 deletions(-)

diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c
index bd4dfa98f7..480441b0f9 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c
@@ -113,34 +113,6 @@ UefiShellDebug1CommandsLibDestructor (
   return (EFI_SUCCESS);
 }
 
-/**
-  Convert a Unicode character to upper case only if
-  it maps to a valid small-case ASCII character.
-
-  This internal function only deal with Unicode character
-  which maps to a valid small-case ASCII character, i.e.
-  L'a' to L'z'. For other Unicode character, the input character
-  is returned directly.
-
-  @param  Char  The character to convert.
-
-  @retval LowerCharacter   If the Char is with range L'a' to L'z'.
-  @retval Unchanged        Otherwise.
-
-
-  //Stolen from MdePkg Baselib
-**/
-CHAR16
-CharToUpper (
-  IN      CHAR16                    Char
-  )
-{
-  if (Char >= L'a' && Char <= L'z') {
-    return (CHAR16) (Char - (L'a' - L'A'));
-  }
-
-  return Char;
-}
 
 /**
   Function returns a system configuration table that is stored in the
-- 
2.18.0.windows.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ShellPkg/UefiShellDebug1CommandsLib: Remove an unused function
  2018-12-13  5:33 [PATCH] ShellPkg/UefiShellDebug1CommandsLib: Remove an unused function Shenglei Zhang
@ 2018-12-13  6:17 ` Gao, Liming
  2018-12-13 10:39 ` Laszlo Ersek
  1 sibling, 0 replies; 3+ messages in thread
From: Gao, Liming @ 2018-12-13  6:17 UTC (permalink / raw)
  To: Zhang, Shenglei, edk2-devel@lists.01.org; +Cc: Carsey, Jaben, Ni, Ruiyu

Shenglei:
  Please submit one BZ for this change. 

>-----Original Message-----
>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
>Shenglei Zhang
>Sent: Thursday, December 13, 2018 1:33 PM
>To: edk2-devel@lists.01.org
>Cc: Carsey, Jaben <jaben.carsey@intel.com>; Ni, Ruiyu <ruiyu.ni@intel.com>
>Subject: [edk2] [PATCH] ShellPkg/UefiShellDebug1CommandsLib: Remove an
>unused function
>
>CharToUpper is an unused internal function, so it will be removed.
>
>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 Zhang <shenglei.zhang@intel.com>
>---
> .../UefiShellDebug1CommandsLib.c              | 28 -------------------
> 1 file changed, 28 deletions(-)
>
>diff --git
>a/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1Command
>sLib.c
>b/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1Comman
>dsLib.c
>index bd4dfa98f7..480441b0f9 100644
>---
>a/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1Command
>sLib.c
>+++
>b/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1Comman
>dsLib.c
>@@ -113,34 +113,6 @@ UefiShellDebug1CommandsLibDestructor (
>   return (EFI_SUCCESS);
> }
>
>-/**
>-  Convert a Unicode character to upper case only if
>-  it maps to a valid small-case ASCII character.
>-
>-  This internal function only deal with Unicode character
>-  which maps to a valid small-case ASCII character, i.e.
>-  L'a' to L'z'. For other Unicode character, the input character
>-  is returned directly.
>-
>-  @param  Char  The character to convert.
>-
>-  @retval LowerCharacter   If the Char is with range L'a' to L'z'.
>-  @retval Unchanged        Otherwise.
>-
>-
>-  //Stolen from MdePkg Baselib
>-**/
>-CHAR16
>-CharToUpper (
>-  IN      CHAR16                    Char
>-  )
>-{
>-  if (Char >= L'a' && Char <= L'z') {
>-    return (CHAR16) (Char - (L'a' - L'A'));
>-  }
>-
>-  return Char;
>-}
>
> /**
>   Function returns a system configuration table that is stored in the
>--
>2.18.0.windows.1
>
>_______________________________________________
>edk2-devel mailing list
>edk2-devel@lists.01.org
>https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ShellPkg/UefiShellDebug1CommandsLib: Remove an unused function
  2018-12-13  5:33 [PATCH] ShellPkg/UefiShellDebug1CommandsLib: Remove an unused function Shenglei Zhang
  2018-12-13  6:17 ` Gao, Liming
@ 2018-12-13 10:39 ` Laszlo Ersek
  1 sibling, 0 replies; 3+ messages in thread
From: Laszlo Ersek @ 2018-12-13 10:39 UTC (permalink / raw)
  To: Shenglei Zhang, edk2-devel; +Cc: Jaben Carsey, Ruiyu Ni

On 12/13/18 06:33, Shenglei Zhang wrote:
> CharToUpper is an unused internal function, so it will be removed.
> 
> 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 Zhang <shenglei.zhang@intel.com>
> ---
>  .../UefiShellDebug1CommandsLib.c              | 28 -------------------
>  1 file changed, 28 deletions(-)

Please change the subject line to:

ShellPkg/UefiShellDebug1CommandsLib: remove unused function CharToUpper

Thanks
Laszlo


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-13 10:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-13  5:33 [PATCH] ShellPkg/UefiShellDebug1CommandsLib: Remove an unused function Shenglei Zhang
2018-12-13  6:17 ` Gao, Liming
2018-12-13 10:39 ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox