From e0420bae095b5bf2cda42cdcdb9007147ce6240c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 24 Jul 2020 20:01:14 +0200 Subject: [PATCH] gl renderer: Remove dead code We aren't using n_corners anyway --- gsk/gl/gskglrenderer.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c index bc67d66b27..c4efc4c8cf 100644 --- a/gsk/gl/gskglrenderer.c +++ b/gsk/gl/gskglrenderer.c @@ -1178,25 +1178,24 @@ intersect_rounded_rectilinear (const graphene_rect_t *non_rounded, const GskRoundedRect *rounded, GskRoundedRect *result) { - int n_corners = 0; bool corners[4]; /* Intersects with top left corner? */ - n_corners += corners[0] = rounded_rect_has_corner (rounded, 0) && - graphene_rect_intersects (non_rounded, - &rounded_rect_corner (rounded, 0)); + corners[0] = rounded_rect_has_corner (rounded, 0) && + graphene_rect_intersects (non_rounded, + &rounded_rect_corner (rounded, 0)); /* top right? */ - n_corners += corners[1] = rounded_rect_has_corner (rounded, 1) && - graphene_rect_intersects (non_rounded, - &rounded_rect_corner (rounded, 1)); + corners[1] = rounded_rect_has_corner (rounded, 1) && + graphene_rect_intersects (non_rounded, + &rounded_rect_corner (rounded, 1)); /* bottom right? */ - n_corners += corners[2] = rounded_rect_has_corner (rounded, 2) && - graphene_rect_intersects (non_rounded, - &rounded_rect_corner (rounded, 2)); + corners[2] = rounded_rect_has_corner (rounded, 2) && + graphene_rect_intersects (non_rounded, + &rounded_rect_corner (rounded, 2)); /* bottom left */ - n_corners += corners[3] = rounded_rect_has_corner (rounded, 3) && - graphene_rect_intersects (non_rounded, - &rounded_rect_corner (rounded, 3)); + corners[3] = rounded_rect_has_corner (rounded, 3) && + graphene_rect_intersects (non_rounded, + &rounded_rect_corner (rounded, 3)); if (corners[0] && !_graphene_rect_contains_rect (non_rounded, &rounded_rect_corner (rounded, 0))) return false;