[edk2] [PATCH] MdeModulePkg: Delete useless case code

Song, BinX posted 1 patch 7 years, 4 months ago
Failed in applying to current master (apply log)
.../Universal/RegularExpressionDxe/Oniguruma/reggnu.c        |  9 ---------
.../Universal/RegularExpressionDxe/Oniguruma/regposix.c      | 12 ------------
2 files changed, 21 deletions(-)
[edk2] [PATCH] MdeModulePkg: Delete useless case code
Posted by Song, BinX 7 years, 4 months ago
- Delete useless case code to fix /WHOLEARCHIVE build
  error with VS2015 tool chain

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Bell Song <binx.song@intel.com>
---
 .../Universal/RegularExpressionDxe/Oniguruma/reggnu.c        |  9 ---------
 .../Universal/RegularExpressionDxe/Oniguruma/regposix.c      | 12 ------------
 2 files changed, 21 deletions(-)

diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/reggnu.c b/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/reggnu.c
index 1b52328..7fa5819 100644
--- a/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/reggnu.c
+++ b/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/reggnu.c
@@ -151,15 +151,6 @@ re_mbcinit(int mb_code)
   case RE_MBCTYPE_ASCII:
     enc = ONIG_ENCODING_ASCII;
     break;
-  case RE_MBCTYPE_EUC:
-    enc = ONIG_ENCODING_EUC_JP;
-    break;
-  case RE_MBCTYPE_SJIS:
-    enc = ONIG_ENCODING_SJIS;
-    break;
-  case RE_MBCTYPE_UTF8:
-    enc = ONIG_ENCODING_UTF8;
-    break;
   default:
     return ;
     break;
diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regposix.c b/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regposix.c
index 06cad48..cfca25e 100644
--- a/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regposix.c
+++ b/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regposix.c
@@ -238,18 +238,6 @@ reg_set_encoding(int mb_code)
   case REG_POSIX_ENCODING_ASCII:
     enc = ONIG_ENCODING_ASCII;
     break;
-  case REG_POSIX_ENCODING_EUC_JP:
-    enc = ONIG_ENCODING_EUC_JP;
-    break;
-  case REG_POSIX_ENCODING_SJIS:
-    enc = ONIG_ENCODING_SJIS;
-    break;
-  case REG_POSIX_ENCODING_UTF8:
-    enc = ONIG_ENCODING_UTF8;
-    break;
-  case REG_POSIX_ENCODING_UTF16_BE:
-    enc = ONIG_ENCODING_UTF16_BE;
-    break;
   case REG_POSIX_ENCODING_UTF16_LE:
     enc = ONIG_ENCODING_UTF16_LE;
     break;
-- 
2.10.2.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] [PATCH] MdeModulePkg: Delete useless case code
Posted by Zeng, Star 7 years, 4 months ago
Reviewed-by: Star Zeng <star.zeng@intel.com>

-----Original Message-----
From: Song, BinX 
Sent: Thursday, August 3, 2017 1:53 PM
To: edk2-devel@lists.01.org
Cc: Zeng, Star <star.zeng@intel.com>; Dong, Eric <eric.dong@intel.com>
Subject: [PATCH] MdeModulePkg: Delete useless case code

- Delete useless case code to fix /WHOLEARCHIVE build
  error with VS2015 tool chain

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Bell Song <binx.song@intel.com>
---
 .../Universal/RegularExpressionDxe/Oniguruma/reggnu.c        |  9 ---------
 .../Universal/RegularExpressionDxe/Oniguruma/regposix.c      | 12 ------------
 2 files changed, 21 deletions(-)

diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/reggnu.c b/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/reggnu.c
index 1b52328..7fa5819 100644
--- a/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/reggnu.c
+++ b/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/reggnu.c
@@ -151,15 +151,6 @@ re_mbcinit(int mb_code)
   case RE_MBCTYPE_ASCII:
     enc = ONIG_ENCODING_ASCII;
     break;
-  case RE_MBCTYPE_EUC:
-    enc = ONIG_ENCODING_EUC_JP;
-    break;
-  case RE_MBCTYPE_SJIS:
-    enc = ONIG_ENCODING_SJIS;
-    break;
-  case RE_MBCTYPE_UTF8:
-    enc = ONIG_ENCODING_UTF8;
-    break;
   default:
     return ;
     break;
diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regposix.c b/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regposix.c
index 06cad48..cfca25e 100644
--- a/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regposix.c
+++ b/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regposix.c
@@ -238,18 +238,6 @@ reg_set_encoding(int mb_code)
   case REG_POSIX_ENCODING_ASCII:
     enc = ONIG_ENCODING_ASCII;
     break;
-  case REG_POSIX_ENCODING_EUC_JP:
-    enc = ONIG_ENCODING_EUC_JP;
-    break;
-  case REG_POSIX_ENCODING_SJIS:
-    enc = ONIG_ENCODING_SJIS;
-    break;
-  case REG_POSIX_ENCODING_UTF8:
-    enc = ONIG_ENCODING_UTF8;
-    break;
-  case REG_POSIX_ENCODING_UTF16_BE:
-    enc = ONIG_ENCODING_UTF16_BE;
-    break;
   case REG_POSIX_ENCODING_UTF16_LE:
     enc = ONIG_ENCODING_UTF16_LE;
     break;
-- 
2.10.2.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel