[PATCH 12/12] wined3d: remove wined3d_surface_get_parent

Riccardo Bortolato rikyz619 at gmail.com
Wed Sep 23 03:27:36 CDT 2015


---
 dlls/wined3d/surface.c    | 7 -------
 dlls/wined3d/wined3d.spec | 1 -
 include/wine/wined3d.h    | 1 -
 3 files changed, 9 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 5f00003..0f1b429 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1863,13 +1863,6 @@ ULONG CDECL wined3d_surface_decref(struct wined3d_surface *surface)
     return wined3d_texture_decref(surface->container);
 }
 
-void * CDECL wined3d_surface_get_parent(const struct wined3d_surface *surface)
-{
-    TRACE("surface %p.\n", surface);
-
-    return surface->resource.parent;
-}
-
 struct wined3d_resource * CDECL wined3d_surface_get_resource(struct wined3d_surface *surface)
 {
     TRACE("surface %p.\n", surface);
diff --git a/dlls/wined3d/wined3d.spec b/dlls/wined3d/wined3d.spec
index 2effe3b..fefe3b5 100644
--- a/dlls/wined3d/wined3d.spec
+++ b/dlls/wined3d/wined3d.spec
@@ -225,7 +225,6 @@
 @ cdecl wined3d_surface_decref(ptr)
 @ cdecl wined3d_surface_from_resource(ptr)
 @ cdecl wined3d_surface_get_overlay_position(ptr ptr ptr)
-@ cdecl wined3d_surface_get_parent(ptr)
 @ cdecl wined3d_surface_get_pitch(ptr)
 @ cdecl wined3d_surface_get_render_target_data(ptr ptr)
 @ cdecl wined3d_surface_get_resource(ptr)
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index 107b702..b165bbb 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2481,7 +2481,6 @@ HRESULT __cdecl wined3d_surface_blt(struct wined3d_surface *dst_surface, const R
 ULONG __cdecl wined3d_surface_decref(struct wined3d_surface *surface);
 struct wined3d_surface * __cdecl wined3d_surface_from_resource(struct wined3d_resource *resource);
 HRESULT __cdecl wined3d_surface_get_overlay_position(const struct wined3d_surface *surface, LONG *x, LONG *y);
-void * __cdecl wined3d_surface_get_parent(const struct wined3d_surface *surface);
 DWORD __cdecl wined3d_surface_get_pitch(const struct wined3d_surface *surface);
 HRESULT __cdecl wined3d_surface_get_render_target_data(struct wined3d_surface *surface,
         struct wined3d_surface *render_target);
-- 
1.9.1




More information about the wine-patches mailing list