From fbe912d73bda27f69cba0ac62fc2726d12706ce6 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Sun, 27 Oct 2013 10:43:09 +0100 Subject: [PATCH] mscoree: RuntimeHost_Destroy() is not used anymore so remove it. --- dlls/mscoree/corruntimehost.c | 17 ----------------- dlls/mscoree/mscoree_private.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c index 5cea6693920..554f4c55ce9 100644 --- a/dlls/mscoree/corruntimehost.c +++ b/dlls/mscoree/corruntimehost.c @@ -1269,23 +1269,6 @@ HRESULT RuntimeHost_GetInterface(RuntimeHost *This, REFCLSID clsid, REFIID riid, return CLASS_E_CLASSNOTAVAILABLE; } -HRESULT RuntimeHost_Destroy(RuntimeHost *This) -{ - struct DomainEntry *cursor, *cursor2; - - This->lock.DebugInfo->Spare[0] = 0; - DeleteCriticalSection(&This->lock); - - LIST_FOR_EACH_ENTRY_SAFE(cursor, cursor2, &This->domains, struct DomainEntry, entry) - { - list_remove(&cursor->entry); - HeapFree(GetProcessHeap(), 0, cursor); - } - - HeapFree( GetProcessHeap(), 0, This ); - return S_OK; -} - #define CHARS_IN_GUID 39 #define ARRAYSIZE(array) (sizeof(array)/sizeof((array)[0])) diff --git a/dlls/mscoree/mscoree_private.h b/dlls/mscoree/mscoree_private.h index 820d0814429..f76dd783225 100644 --- a/dlls/mscoree/mscoree_private.h +++ b/dlls/mscoree/mscoree_private.h @@ -175,8 +175,6 @@ extern HRESULT RuntimeHost_GetIUnknownForObject(RuntimeHost *This, MonoObject *o extern HRESULT RuntimeHost_CreateManagedInstance(RuntimeHost *This, LPCWSTR name, MonoDomain *domain, MonoObject **result) DECLSPEC_HIDDEN; -extern HRESULT RuntimeHost_Destroy(RuntimeHost *This) DECLSPEC_HIDDEN; - HRESULT WINAPI CLRMetaHost_ExitProcess(ICLRMetaHost* iface, INT32 iExitCode) DECLSPEC_HIDDEN; HRESULT WINAPI CLRMetaHost_GetRuntime(ICLRMetaHost* iface, LPCWSTR pwzVersion, REFIID iid, LPVOID *ppRuntime) DECLSPEC_HIDDEN;