diff options
Diffstat (limited to 'src/vm')
-rw-r--r-- | src/vm/ceeload.cpp | 11 | ||||
-rw-r--r-- | src/vm/ceeload.h | 2 | ||||
-rw-r--r-- | src/vm/ceemain.cpp | 6 |
3 files changed, 0 insertions, 19 deletions
diff --git a/src/vm/ceeload.cpp b/src/vm/ceeload.cpp index c21f18670d..3e1d96d219 100644 --- a/src/vm/ceeload.cpp +++ b/src/vm/ceeload.cpp @@ -11737,17 +11737,6 @@ void SaveManagedCommandLine(LPCWSTR pwzAssemblyPath, int argc, LPCWSTR *argv) #endif } -// Release any memory that we allocated for the managed command line -void ReleaseManagedCommandLine() -{ - LIMITED_METHOD_CONTRACT; - -#ifdef FEATURE_PAL - delete[] s_pCommandLine; - s_pCommandLine = NULL; -#endif -} - static void ProfileDataAllocateScenarioInfo(ProfileEmitter * pEmitter, LPCSTR scopeName, GUID* pMvid) { CONTRACTL diff --git a/src/vm/ceeload.h b/src/vm/ceeload.h index adfefccc5c..407d96933c 100644 --- a/src/vm/ceeload.h +++ b/src/vm/ceeload.h @@ -3423,7 +3423,5 @@ struct VASigCookieEx : public VASigCookie LPCWSTR GetManagedCommandLine(); // Save the command line for the current process. void SaveManagedCommandLine(LPCWSTR pwzAssemblyPath, int argc, LPCWSTR *argv); -// Release any memory that we allocated for the managed command line -void ReleaseManagedCommandLine(); #endif // !CEELOAD_H_ diff --git a/src/vm/ceemain.cpp b/src/vm/ceemain.cpp index d2e23b8c52..e595e88868 100644 --- a/src/vm/ceemain.cpp +++ b/src/vm/ceemain.cpp @@ -1463,12 +1463,6 @@ void STDMETHODCALLTYPE EEShutDownHelper(BOOL fIsDllUnloading) DiagnosticServer::Shutdown(); #endif // FEATURE_PERFTRACING - // When running under FEATURE_PAL, the SetCommandLineArgs call above will - // call SaveManagedCommandLine which will allocate memory using new WCHAR[] - // We can release this memory now. - // - ReleaseManagedCommandLine(); - #if defined(FEATURE_COMINTEROP) // Get the current thread. Thread * pThisThread = GetThread(); |