gdk: Remove unused count member from GdkEventExpose
authorBenjamin Otte <otte@redhat.com>
Tue, 20 Mar 2018 21:30:04 +0000 (22:30 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 20 Mar 2018 23:43:28 +0000 (00:43 +0100)
gdk/gdkeventsprivate.h
gdk/gdksurface.c

index b664f2706c675675d5a63d87146cc90a1869d076..93f872ce228ad9d6100ae7f4f5b2deae1c1ed740 100644 (file)
@@ -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. */
 };
 
 /*
index 8f287d51993f4a008cb94ab28867a8170c8f2c01..3b1fb91ab6c5a13e612ea3d25548d6d3f1003cf0 100644 (file)
@@ -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);