diff options
author | Benjamin Otte <otte@redhat.com> | 2023-05-17 01:52:42 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2023-05-17 01:52:42 +0200 |
commit | 112fe063232c4066e78c5e217f3e5b6fb5c0bf8f (patch) | |
tree | 6e1716113ca1d657c41e214949fb003771af88aa /gsk | |
parent | 8bcb918de5343d46519e8207b5ebcc370545defe (diff) | |
download | gtk+-112fe063232c4066e78c5e217f3e5b6fb5c0bf8f.tar.gz |
glrenderer: Remove unused function
Thanks, macos CI.
(We should have a Fedora clang build.)
Diffstat (limited to 'gsk')
-rw-r--r-- | gsk/gl/gskglrenderjob.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gsk/gl/gskglrenderjob.c b/gsk/gl/gskglrenderjob.c index 85ee17eac8..e5967d9f52 100644 --- a/gsk/gl/gskglrenderjob.c +++ b/gsk/gl/gskglrenderjob.c @@ -363,36 +363,6 @@ rect_contains_rect (const graphene_rect_t *r1, (r2->origin.y + r2->size.height) <= (r1->origin.y + r1->size.height); } -static inline gboolean -rounded_inner_rect_contains_rect (const GskRoundedRect *rounded, - const graphene_rect_t *rect) -{ - const graphene_rect_t *rounded_bounds = &rounded->bounds; - graphene_rect_t inner; - float offset_x; - float offset_y; - - /* TODO: This is pretty conservative and we could go further, - * more fine-grained checks to avoid offscreen drawing. - */ - - offset_x = MAX (rounded->corner[GSK_CORNER_TOP_LEFT].width, - rounded->corner[GSK_CORNER_BOTTOM_LEFT].width); - offset_y = MAX (rounded->corner[GSK_CORNER_TOP_LEFT].height, - rounded->corner[GSK_CORNER_TOP_RIGHT].height); - - inner.origin.x = rounded_bounds->origin.x + offset_x; - inner.origin.y = rounded_bounds->origin.y + offset_y; - inner.size.width = rounded_bounds->size.width - offset_x - - MAX (rounded->corner[GSK_CORNER_TOP_RIGHT].width, - rounded->corner[GSK_CORNER_BOTTOM_RIGHT].width); - inner.size.height = rounded_bounds->size.height - offset_y - - MAX (rounded->corner[GSK_CORNER_BOTTOM_LEFT].height, - rounded->corner[GSK_CORNER_BOTTOM_RIGHT].height); - - return rect_contains_rect (&inner, rect); -} - static inline gboolean G_GNUC_PURE rect_intersects (const graphene_rect_t *r1, const graphene_rect_t *r2) |