window: Remove unused destroy_draw_context vfunc

This commit is contained in:
Benjamin Otte 2016-11-20 07:27:00 +01:00
parent cb18752f94
commit 1492175a28
2 changed files with 3 additions and 10 deletions

View File

@ -2933,8 +2933,6 @@ void
gdk_window_end_draw_frame (GdkWindow *window,
GdkDrawingContext *context)
{
GdkWindowImplClass *impl_class;
g_return_if_fail (GDK_IS_WINDOW (window));
g_return_if_fail (GDK_IS_DRAWING_CONTEXT (context));
@ -2945,17 +2943,14 @@ gdk_window_end_draw_frame (GdkWindow *window,
"gdk_window_end_draw_frame().", window);
return;
}
g_return_if_fail (window->drawing_context == context);
if (gdk_window_has_native (window) && gdk_window_is_toplevel (window))
gdk_window_end_paint_internal (window);
impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
if (impl_class->destroy_draw_context != NULL)
impl_class->destroy_draw_context (window, context);
else
g_object_unref (context);
window->drawing_context = NULL;
g_object_unref (context);
}
/*< private >

View File

@ -307,8 +307,6 @@ struct _GdkWindowImplClass
GdkDrawingContext *(* create_draw_context) (GdkWindow *window,
const cairo_region_t *region);
void (* destroy_draw_context) (GdkWindow *window,
GdkDrawingContext *context);
};
/* Interface Functions */