diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-11-07 15:19:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-07 15:19:30 -0800 |
commit | ed896bf25fa17e0015a0e274072bbb820410300b (patch) | |
tree | 4fbce61e26287ebaaede7af4014589cabe9f2d21 /src/utilcode | |
parent | 1ed7aebdef6b38ee39e7a0db025fd49e37c53b83 (diff) | |
download | coreclr-ed896bf25fa17e0015a0e274072bbb820410300b.tar.gz coreclr-ed896bf25fa17e0015a0e274072bbb820410300b.tar.bz2 coreclr-ed896bf25fa17e0015a0e274072bbb820410300b.zip |
Delete dead code (#14901)
Diffstat (limited to 'src/utilcode')
-rw-r--r-- | src/utilcode/clrconfig.cpp | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/utilcode/clrconfig.cpp b/src/utilcode/clrconfig.cpp index 7bd404b5d4..3d1679150b 100644 --- a/src/utilcode/clrconfig.cpp +++ b/src/utilcode/clrconfig.cpp @@ -24,13 +24,6 @@ // CLRConfig::GetConfigValueFunction CLRConfig::s_GetConfigValueCallback = NULL; -// -// Initialize the PerformanceDefaults::LookupConfigValue function pointer to NULL. If not initialized, CLRConfig -// will ignore LookupOptions::MayHavePerformanceDefault. -// -CLRConfig::GetPerformanceDefaultValueFunction CLRConfig::s_GetPerformanceDefaultValueCallback = NULL; - - // // Creating structs using the macro table in CLRConfigValues.h // @@ -182,22 +175,6 @@ BOOL CLRConfig::IsConfigEnabled(const ConfigDWORDInfo & info) } } - // - // If we get here, the option was not listed in REGUTIL or EEConfig; check whether the option - // has a PerformanceDefault-specified value before falling back to the built-in default - // - DWORD performanceDefaultValue; - if (CheckLookupOption(info, MayHavePerformanceDefault) && - s_GetPerformanceDefaultValueCallback != NULL && - s_GetPerformanceDefaultValueCallback(info.name, &performanceDefaultValue)) - { - if (!SUCCEEDED(REGUTIL::GetConfigDWORD_DontUse_(info.name, info.defaultValue, &result, level, prependCOMPlus))) - { - if(performanceDefaultValue>0) - return TRUE; - } - } - if(info.defaultValue>0) return TRUE; else @@ -337,25 +314,6 @@ DWORD CLRConfig::GetConfigValue(const ConfigDWORDInfo & info, bool acceptExplici } } - // - // If we get here, the option was not listed in REGUTIL or EEConfig; check whether the option - // has a PerformanceDefault-specified value before falling back to the built-in default - // - DWORD performanceDefaultValue; - if (CheckLookupOption(info, MayHavePerformanceDefault) && - s_GetPerformanceDefaultValueCallback != NULL && - s_GetPerformanceDefaultValueCallback(info.name, &performanceDefaultValue)) - { - // TODO: We ignore explicitly defined default values above, but we do not want to let performance defaults override these. - // TODO: Ideally, the above would use hresult for success and this check would be removed. - DWORD resultMaybe; - if (!SUCCEEDED(REGUTIL::GetConfigDWORD_DontUse_(info.name, info.defaultValue, &resultMaybe, level, prependCOMPlus))) - { - *isDefault = true; - return performanceDefaultValue; - } - } - *isDefault = true; return info.defaultValue; } @@ -494,10 +452,6 @@ HRESULT CLRConfig::GetConfigValue(const ConfigStringInfo & info, __deref_out_z L } } - // If we ever want a PerformanceDefault for a string value, you can replace this assert - // with code that follows the pattern for DWORD values above. - _ASSERTE(!CheckLookupOption(info, MayHavePerformanceDefault)); - *outVal = result; RETURN S_OK; } @@ -648,17 +602,6 @@ void CLRConfig::RegisterGetConfigValueCallback(GetConfigValueFunction func) } // -// Register PerformanceDefaults' LookupConfigValue so CLRConfig can support 'MayHavePerformanceDefault' values -// -//static -void CLRConfig::RegisterGetPerformanceDefaultValueCallback(GetPerformanceDefaultValueFunction func) -{ - LIMITED_METHOD_CONTRACT; - s_GetPerformanceDefaultValueCallback = func; -} - - -// // Helper method to translate LookupOptions to REGUTIL::CORConfigLevel. // //static |