From: André Hentschel Subject: fusion: Remove unused IAssemblyCacheItem (Clang) Message-Id: <546F9982.5040200@dawncrow.de> Date: Fri, 21 Nov 2014 20:58:58 +0100 --- dlls/fusion/asmcache.c | 94 -------------------------------------------------- 1 file changed, 94 deletions(-) diff --git a/dlls/fusion/asmcache.c b/dlls/fusion/asmcache.c index 9125655..f765793 100644 --- a/dlls/fusion/asmcache.c +++ b/dlls/fusion/asmcache.c @@ -557,97 +557,3 @@ HRESULT WINAPI CreateAssemblyCache(IAssemblyCache **ppAsmCache, DWORD dwReserved *ppAsmCache = &cache->IAssemblyCache_iface; return S_OK; } - -/* IAssemblyCacheItem */ - -typedef struct { - IAssemblyCacheItem IAssemblyCacheItem_iface; - - LONG ref; -} IAssemblyCacheItemImpl; - -static inline IAssemblyCacheItemImpl *impl_from_IAssemblyCacheItem(IAssemblyCacheItem *iface) -{ - return CONTAINING_RECORD(iface, IAssemblyCacheItemImpl, IAssemblyCacheItem_iface); -} - -static HRESULT WINAPI IAssemblyCacheItemImpl_QueryInterface(IAssemblyCacheItem *iface, - REFIID riid, LPVOID *ppobj) -{ - IAssemblyCacheItemImpl *This = impl_from_IAssemblyCacheItem(iface); - - TRACE("(%p, %s, %p)\n", This, debugstr_guid(riid), ppobj); - - *ppobj = NULL; - - if (IsEqualIID(riid, &IID_IUnknown) || - IsEqualIID(riid, &IID_IAssemblyCacheItem)) - { - IAssemblyCacheItem_AddRef(iface); - *ppobj = This; - return S_OK; - } - - WARN("(%p, %s, %p): not found\n", This, debugstr_guid(riid), ppobj); - return E_NOINTERFACE; -} - -static ULONG WINAPI IAssemblyCacheItemImpl_AddRef(IAssemblyCacheItem *iface) -{ - IAssemblyCacheItemImpl *This = impl_from_IAssemblyCacheItem(iface); - ULONG refCount = InterlockedIncrement(&This->ref); - - TRACE("(%p)->(ref before = %u)\n", This, refCount - 1); - - return refCount; -} - -static ULONG WINAPI IAssemblyCacheItemImpl_Release(IAssemblyCacheItem *iface) -{ - IAssemblyCacheItemImpl *This = impl_from_IAssemblyCacheItem(iface); - ULONG refCount = InterlockedDecrement(&This->ref); - - TRACE("(%p)->(ref before = %u)\n", This, refCount + 1); - - if (!refCount) - HeapFree(GetProcessHeap(), 0, This); - - return refCount; -} - -static HRESULT WINAPI IAssemblyCacheItemImpl_CreateStream(IAssemblyCacheItem *iface, - DWORD dwFlags, - LPCWSTR pszStreamName, - DWORD dwFormat, - DWORD dwFormatFlags, - IStream **ppIStream, - ULARGE_INTEGER *puliMaxSize) -{ - FIXME("(%p, %d, %s, %d, %d, %p, %p) stub!\n", iface, dwFlags, - debugstr_w(pszStreamName), dwFormat, dwFormatFlags, ppIStream, puliMaxSize); - - return E_NOTIMPL; -} - -static HRESULT WINAPI IAssemblyCacheItemImpl_Commit(IAssemblyCacheItem *iface, - DWORD dwFlags, - ULONG *pulDisposition) -{ - FIXME("(%p, %d, %p) stub!\n", iface, dwFlags, pulDisposition); - return E_NOTIMPL; -} - -static HRESULT WINAPI IAssemblyCacheItemImpl_AbortItem(IAssemblyCacheItem *iface) -{ - FIXME("(%p) stub!\n", iface); - return E_NOTIMPL; -} - -static const IAssemblyCacheItemVtbl AssemblyCacheItemVtbl = { - IAssemblyCacheItemImpl_QueryInterface, - IAssemblyCacheItemImpl_AddRef, - IAssemblyCacheItemImpl_Release, - IAssemblyCacheItemImpl_CreateStream, - IAssemblyCacheItemImpl_Commit, - IAssemblyCacheItemImpl_AbortItem -};