[gtk/wip/otte/transform: 5/37] snapshot: Remove dead code



commit 7f54eff2c3089dbfc05d9d02b6170bcc8089b337
Author: Benjamin Otte <otte redhat com>
Date:   Thu Feb 21 00:12:42 2019 +0100

    snapshot: Remove dead code
    
    Seems to be leftovers from way too long ago.

 gtk/gtksnapshot.c | 13 -------------
 1 file changed, 13 deletions(-)
---
diff --git a/gtk/gtksnapshot.c b/gtk/gtksnapshot.c
index 8a85755dd5..eccf83f99f 100644
--- a/gtk/gtksnapshot.c
+++ b/gtk/gtksnapshot.c
@@ -542,16 +542,6 @@ gtk_snapshot_push_color_matrix (GtkSnapshot             *snapshot,
   graphene_vec4_init_from_vec4 (&state->data.color_matrix.offset, color_offset);
 }
 
-static void
-rectangle_init_from_graphene (cairo_rectangle_int_t *cairo,
-                              const graphene_rect_t *graphene)
-{
-  cairo->x = floorf (graphene->origin.x);
-  cairo->y = floorf (graphene->origin.y);
-  cairo->width = ceilf (graphene->origin.x + graphene->size.width) - cairo->x;
-  cairo->height = ceilf (graphene->origin.y + graphene->size.height) - cairo->y;
-}
-
 static GskRenderNode *
 gtk_snapshot_collect_repeat (GtkSnapshot      *snapshot,
                              GtkSnapshotState *state,
@@ -632,12 +622,9 @@ gtk_snapshot_push_clip (GtkSnapshot           *snapshot,
   const GtkSnapshotState *current_state = gtk_snapshot_get_current_state (snapshot);
   GtkSnapshotState *state;
   graphene_rect_t real_bounds;
-  cairo_rectangle_int_t rect;
 
   graphene_rect_offset_r (bounds, current_state->translate_x, current_state->translate_y, &real_bounds);
 
-  rectangle_init_from_graphene (&rect, &real_bounds);
-
   state = gtk_snapshot_push_state (snapshot,
                                    current_state->translate_x,
                                    current_state->translate_y,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]