summaryrefslogtreecommitdiff
path: root/src/vm/compatibilityswitch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/compatibilityswitch.cpp')
-rw-r--r--src/vm/compatibilityswitch.cpp59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/vm/compatibilityswitch.cpp b/src/vm/compatibilityswitch.cpp
index d7def228c4..0f3dbeb1c0 100644
--- a/src/vm/compatibilityswitch.cpp
+++ b/src/vm/compatibilityswitch.cpp
@@ -7,48 +7,6 @@
#include "clrconfig.h"
#include "compatibilityswitch.h"
-FCIMPL2(FC_BOOL_RET, CompatibilitySwitch::IsEnabled, StringObject* switchNameUNSAFE, CLR_BOOL onlyDB)
-{
- FCALL_CONTRACT;
-
- if (!switchNameUNSAFE)
- FCThrowRes(kArgumentNullException, W("Arg_InvalidSwitchName"));
-
- BOOL result = TRUE;
-
- STRINGREF name = (STRINGREF) switchNameUNSAFE;
- VALIDATEOBJECTREF(name);
-
- HELPER_METHOD_FRAME_BEGIN_RET_1(name);
-
- CLRConfig::ConfigDWORDInfo info;
- info.name = name->GetBuffer();
- if(onlyDB)
- {
- // for public managed apis we ignore checking in registry/config/env
- // only check in windows appcompat DB
- info.options = CLRConfig::IgnoreEnv |
- CLRConfig::IgnoreHKLM |
- CLRConfig::IgnoreHKCU |
- CLRConfig::IgnoreConfigFiles;
- }
- else
- {
- // for mscorlib (i.e. which use internal apis) also check in
- // registry/config/env in addition to windows appcompat DB
- info.options = CLRConfig::EEConfig_default;
- }
-
- // default value is disabled
- info.defaultValue = 0;
- result = CLRConfig::IsConfigEnabled(info);
- HELPER_METHOD_FRAME_END();
-
- FC_RETURN_BOOL(result);
-}
-FCIMPLEND
-
-
FCIMPL2(StringObject*, CompatibilitySwitch::GetValue, StringObject* switchNameUNSAFE, CLR_BOOL onlyDB) {
CONTRACTL {
FCALL_CHECK;
@@ -88,20 +46,3 @@ FCIMPL2(StringObject*, CompatibilitySwitch::GetValue, StringObject* switchNameUN
return (StringObject*)OBJECTREFToObject(refName);
}
FCIMPLEND
-
-FCIMPL0(StringObject*, CompatibilitySwitch::GetAppContextOverrides) {
- CONTRACTL{
- FCALL_CHECK;
- }
- CONTRACTL_END;
-
- STRINGREF refName = NULL;
-
- HELPER_METHOD_FRAME_BEGIN_RET_0();
- LPWSTR strVal = CLRConfig::GetConfigValue(CLRConfig::INTERNAL_AppContextSwitchOverrides);
- refName = StringObject::NewString(strVal);
- HELPER_METHOD_FRAME_END();
-
- return (StringObject*)OBJECTREFToObject(refName);
-}
-FCIMPLEND