summaryrefslogtreecommitdiff
path: root/src/classlibnative
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-10-24 14:21:36 -0700
committerGitHub <noreply@github.com>2017-10-24 14:21:36 -0700
commitdbfd10c94055fb5af823b4a7e30774641afcb3b2 (patch)
tree7e1957015606b59a674e734de0456a3c6e19bcfc /src/classlibnative
parent1a0e2ef9c559af14acea429aecc591e1550b57db (diff)
downloadcoreclr-dbfd10c94055fb5af823b4a7e30774641afcb3b2.tar.gz
coreclr-dbfd10c94055fb5af823b4a7e30774641afcb3b2.tar.bz2
coreclr-dbfd10c94055fb5af823b4a7e30774641afcb3b2.zip
Delete dead code (#14673)
- assemblyusagelog - compatibilityflags - xmlparser
Diffstat (limited to 'src/classlibnative')
-rw-r--r--src/classlibnative/bcltype/system.cpp43
-rw-r--r--src/classlibnative/bcltype/system.h2
2 files changed, 0 insertions, 45 deletions
diff --git a/src/classlibnative/bcltype/system.cpp b/src/classlibnative/bcltype/system.cpp
index 6577ffcb4a..bb06ceceeb 100644
--- a/src/classlibnative/bcltype/system.cpp
+++ b/src/classlibnative/bcltype/system.cpp
@@ -229,49 +229,6 @@ FCIMPL0(Object*, SystemNative::GetCommandLineArgs)
}
FCIMPLEND
-
-FCIMPL1(FC_BOOL_RET, SystemNative::_GetCompatibilityFlag, int flag)
-{
- FCALL_CONTRACT;
-
- FC_RETURN_BOOL(GetCompatibilityFlag((CompatibilityFlag)flag));
-}
-FCIMPLEND
-
-// Note: Arguments checked in IL.
-FCIMPL1(Object*, SystemNative::_GetEnvironmentVariable, StringObject* strVarUNSAFE)
-{
- FCALL_CONTRACT;
-
- STRINGREF refRetVal;
- STRINGREF strVar;
-
- refRetVal = NULL;
- strVar = ObjectToSTRINGREF(strVarUNSAFE);
-
- HELPER_METHOD_FRAME_BEGIN_RET_2(refRetVal, strVar);
-
- int len;
-
- // Get the length of the environment variable.
- PathString envPath; // prefix complains if pass a null ptr in, so rely on the final length parm instead
- len = WszGetEnvironmentVariable(strVar->GetBuffer(), envPath);
-
- if (len != 0)
- {
- // Allocate the string.
- refRetVal = StringObject::NewString(len);
-
- wcscpy_s(refRetVal->GetBuffer(), len + 1, envPath);
-
- }
-
- HELPER_METHOD_FRAME_END();
-
- return OBJECTREFToObject(refRetVal);
-}
-FCIMPLEND
-
// Return a method info for the method were the exception was thrown
FCIMPL1(ReflectMethodObject*, SystemNative::GetMethodFromStackTrace, ArrayBase* pStackTraceUNSAFE)
{
diff --git a/src/classlibnative/bcltype/system.h b/src/classlibnative/bcltype/system.h
index da5674f4f1..87dde89bcd 100644
--- a/src/classlibnative/bcltype/system.h
+++ b/src/classlibnative/bcltype/system.h
@@ -52,12 +52,10 @@ public:
void QCALLTYPE _GetCommandLine(QCall::StringHandleOnStack retString);
static FCDECL0(Object*, GetCommandLineArgs);
- static FCDECL1(FC_BOOL_RET, _GetCompatibilityFlag, int flag);
static FCDECL1(VOID, FailFast, StringObject* refMessageUNSAFE);
static FCDECL2(VOID, FailFastWithExitCode, StringObject* refMessageUNSAFE, UINT exitCode);
static FCDECL2(VOID, FailFastWithException, StringObject* refMessageUNSAFE, ExceptionObject* refExceptionUNSAFE);
- static FCDECL1(Object*, _GetEnvironmentVariable, StringObject* strVar);
static FCDECL0(StringObject*, _GetModuleFileName);
static FCDECL0(StringObject*, GetRuntimeDirectory);