Henri Verbeet : wined3d: Remove IWineD3DVertexDeclarationImpl_GetDeclaration().

Alexandre Julliard julliard at winehq.org
Fri Mar 27 10:06:39 CDT 2009


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Mar 27 10:25:55 2009 +0100

wined3d: Remove IWineD3DVertexDeclarationImpl_GetDeclaration().

It's never used.

---

 dlls/wined3d/vertexdeclaration.c |   17 -----------------
 include/wine/wined3d.idl         |    4 ----
 2 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/dlls/wined3d/vertexdeclaration.c b/dlls/wined3d/vertexdeclaration.c
index cef81d3..0091ce4 100644
--- a/dlls/wined3d/vertexdeclaration.c
+++ b/dlls/wined3d/vertexdeclaration.c
@@ -103,22 +103,6 @@ static HRESULT WINAPI IWineD3DVertexDeclarationImpl_GetDevice(IWineD3DVertexDecl
     return WINED3D_OK;
 }
 
-static HRESULT WINAPI IWineD3DVertexDeclarationImpl_GetDeclaration(IWineD3DVertexDeclaration *iface,
-        WINED3DVERTEXELEMENT *elements, UINT *element_count) {
-    IWineD3DVertexDeclarationImpl *This = (IWineD3DVertexDeclarationImpl *)iface;
-    HRESULT hr = WINED3D_OK;
-
-    TRACE("(%p) : d3d version %d, elements %p, element_count %p\n",
-            This, ((IWineD3DImpl *)This->wineD3DDevice->wineD3D)->dxVersion, elements, element_count);
-
-    *element_count = This->declarationWNumElements;
-    if (elements) {
-        CopyMemory(elements, This->pDeclarationWine, This->declarationWNumElements * sizeof(WINED3DVERTEXELEMENT));
-    }
-
-    return hr;
-}
-
 static BOOL declaration_element_valid_ffp(const WINED3DVERTEXELEMENT *element)
 {
     switch(element->Usage)
@@ -287,6 +271,5 @@ const IWineD3DVertexDeclarationVtbl IWineD3DVertexDeclaration_Vtbl =
     /* IWineD3DVertexDeclaration */
     IWineD3DVertexDeclarationImpl_GetParent,
     IWineD3DVertexDeclarationImpl_GetDevice,
-    IWineD3DVertexDeclarationImpl_GetDeclaration,
     IWineD3DVertexDeclarationImpl_SetDeclaration
 };
diff --git a/include/wine/wined3d.idl b/include/wine/wined3d.idl
index 783c3fa..0c17d7d 100644
--- a/include/wine/wined3d.idl
+++ b/include/wine/wined3d.idl
@@ -2758,10 +2758,6 @@ interface IWineD3DVertexDeclaration : IWineD3DBase
     HRESULT GetDevice(
         [out] IWineD3DDevice **device
     );
-    HRESULT GetDeclaration(
-        [out] WINED3DVERTEXELEMENT *elements,
-        [out] UINT *element_count
-    );
     HRESULT SetDeclaration(
         [in] const WINED3DVERTEXELEMENT *elements,
         [in] UINT element_count




More information about the wine-cvs mailing list