mirror of https://github.com/acidanthera/audk.git
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.1 Signed-off-by: Bell Song <binx.song@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
39bc77eb76
commit
cc063f30dc
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue