mscoree: RuntimeHost_Destroy() is not used anymore so remove it.

Francois Gouget fgouget at free.fr
Sun Oct 27 04:43:09 CDT 2013


---
 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 5cea669..554f4c5 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 820d081..f76dd78 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;
-- 
1.8.4.rc3



More information about the wine-patches mailing list