diff options
author | Jan Kotas <jkotas@microsoft.com> | 2019-05-24 23:10:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-24 23:10:21 -0700 |
commit | 5b283a18625f7a8009c18221592ec81c3cd32375 (patch) | |
tree | 8e03c62911673b16b6e7382123fcf42b9d6bbe72 /src/utilcode/posterror.cpp | |
parent | b676246c1dd880b7290a1313cdac309fe020aa6f (diff) | |
download | coreclr-5b283a18625f7a8009c18221592ec81c3cd32375.tar.gz coreclr-5b283a18625f7a8009c18221592ec81c3cd32375.tar.bz2 coreclr-5b283a18625f7a8009c18221592ec81c3cd32375.zip |
Delete FEATURE_USE_LCID (#24767)
Never defined and obsolete
Diffstat (limited to 'src/utilcode/posterror.cpp')
-rw-r--r-- | src/utilcode/posterror.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/utilcode/posterror.cpp b/src/utilcode/posterror.cpp index a15128add9..c0f66c4f7f 100644 --- a/src/utilcode/posterror.cpp +++ b/src/utilcode/posterror.cpp @@ -99,46 +99,6 @@ HRESULT UtilLoadResourceString(CCompRC::ResourceCategory eCategory, UINT iResour return retVal; } -#ifdef FEATURE_USE_LCID -STDAPI UtilLoadStringRCEx( - LCID lcid, - UINT iResourceID, - __out_ecount(iMax) LPWSTR szBuffer, - int iMax, - int bQuiet, - int *pcwchUsed -) -{ - CONTRACTL - { - DISABLED(NOTHROW); - GC_NOTRIGGER; - } - CONTRACTL_END; - - HRESULT retVal = E_OUTOFMEMORY; - - EX_TRY - { - SString::Startup(); - CCompRC *pResourceDLL = CCompRC::GetDefaultResourceDll(); - - if (pResourceDLL != NULL) - { - retVal = pResourceDLL->LoadString(bQuiet? CCompRC::Optional : CCompRC::Required,lcid, iResourceID, szBuffer, iMax, pcwchUsed); - } - } - EX_CATCH - { - // Catch any errors and return E_OUTOFMEMORY; - retVal = E_OUTOFMEMORY; - } - EX_END_CATCH(SwallowAllExceptions); - - return retVal; -} -#endif //FEATURE_USE_LCID - //***************************************************************************** // Format a Runtime Error message. //***************************************************************************** @@ -174,15 +134,9 @@ HRESULT __cdecl FormatRuntimeErrorVa( // find the text for it. else { -#ifdef FEATURE_USE_LCID - if (WszFormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, - 0, hrRpt, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - rcMsg, cchMsg, 0/*<TODO>@todo: marker</TODO>*/)) -#else if (WszFormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0, hrRpt, 0, rcMsg, cchMsg, 0/*<TODO>@todo: marker</TODO>*/)) -#endif { hr = S_OK; |