From: Benjamin Otte Date: Tue, 20 Mar 2018 21:30:04 +0000 (+0100) Subject: gdk: Remove unused count member from GdkEventExpose X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~849 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5c7ee3a483f1fc59b60da0e8fafb33681bab507d;p=gtk4.git gdk: Remove unused count member from GdkEventExpose --- diff --git a/gdk/gdkeventsprivate.h b/gdk/gdkeventsprivate.h index b664f2706c..93f872ce22 100644 --- a/gdk/gdkeventsprivate.h +++ b/gdk/gdkeventsprivate.h @@ -70,10 +70,6 @@ struct _GdkEventAny * @send_event: %TRUE if the event was sent explicitly. * @area: bounding box of @region. * @region: the region that needs to be redrawn. - * @count: the number of contiguous %GDK_EXPOSE events following this one. - * The only use for this is “exposure compression”, i.e. handling all - * contiguous %GDK_EXPOSE events in one go, though GDK performs some - * exposure compression so this is not normally needed. * * Generated when all or part of a surface becomes visible and needs to be * redrawn. @@ -83,7 +79,6 @@ struct _GdkEventExpose GdkEventAny any; GdkRectangle area; cairo_region_t *region; - gint count; /* If non-zero, how many more events follow. */ }; /* diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c index 8f287d5199..3b1fb91ab6 100644 --- a/gdk/gdksurface.c +++ b/gdk/gdksurface.c @@ -2355,7 +2355,6 @@ _gdk_surface_process_updates_recurse (GdkSurface *surface, event = gdk_event_new (GDK_EXPOSE); event->any.surface = g_object_ref (surface); event->any.send_event = FALSE; - event->expose.count = 0; event->expose.region = cairo_region_reference (clipped_expose_region); cairo_region_get_extents (clipped_expose_region, &event->expose.area);