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

Alexandre Julliard julliard at winehq.org
Mon Oct 28 15:13:04 CDT 2013


Module: wine
Branch: master
Commit: fbe912d73bda27f69cba0ac62fc2726d12706ce6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fbe912d73bda27f69cba0ac62fc2726d12706ce6

Author: Francois Gouget <fgouget at free.fr>
Date:   Sun Oct 27 10:43:09 2013 +0100

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

---

 dlls/mscoree/corruntimehost.c  |   17 -----------------
 dlls/mscoree/mscoree_private.h |    2 --
 2 files changed, 0 insertions(+), 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;




More information about the wine-cvs mailing list