diff options
author | Benjamin Otte <otte@redhat.com> | 2019-02-21 00:12:42 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-02-21 19:47:28 +0100 |
commit | f0142b9c4b53485e8ac55446916e94aee48389d1 (patch) | |
tree | 4b24c6053e86688a93faf54c4735d2783726062b | |
parent | 6a4bf2b9938abbcbf531a9d64b01007dfa2e144d (diff) | |
download | gtk+-f0142b9c4b53485e8ac55446916e94aee48389d1.tar.gz |
snapshot: Remove dead code
Seems to be leftovers from way too long ago.
-rw-r--r-- | gtk/gtksnapshot.c | 13 |
1 files changed, 0 insertions, 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, |