[gtk/wip/chergert/glproto: 413/493] remove singly used functions




commit bc196131f0362cbe4867ab90bd858a40992e1b9d
Author: Christian Hergert <chergert redhat com>
Date:   Mon Feb 8 13:51:59 2021 -0800

    remove singly used functions

 gsk/next/gskglrenderjob.c | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index a9ea687d29..6b90aa0a5d 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -596,20 +596,6 @@ gsk_gl_render_job_pop_modelview (GskGLRenderJob *job)
     }
 }
 
-static inline gboolean
-gsk_gl_render_job_has_clip (GskGLRenderJob *job)
-{
-  return job->clip->len > 1;
-}
-
-static inline gboolean
-gsk_gl_render_job_clip_is_rectilinear (GskGLRenderJob *job)
-{
-  g_assert (job->clip->len > 0);
-
-  return job->current_clip->is_rectilinear;
-}
-
 static void
 gsk_gl_render_job_push_clip (GskGLRenderJob       *job,
                              const GskRoundedRect *rect)
@@ -1305,7 +1291,7 @@ gsk_gl_render_job_visit_clipped_child (GskGLRenderJob        *job,
 
   gsk_gl_render_job_transform_bounds (job, clip, &transformed_clip);
 
-  if (gsk_gl_render_job_clip_is_rectilinear (job))
+  if (job->current_clip->is_rectilinear)
     {
       memset (&intersection.corner, 0, sizeof intersection.corner);
       graphene_rect_intersection (&transformed_clip,
@@ -1408,7 +1394,7 @@ gsk_gl_render_job_visit_rounded_clip_node (GskGLRenderJob      *job,
    * which both have rounded corners.
    */
 
-  if (!gsk_gl_render_job_has_clip (job))
+  if (job->clip->len <= 1)
     need_offscreen = FALSE;
   else if (rounded_inner_rect_contains_rect (&current_clip, &transformed_clip.bounds))
     need_offscreen = FALSE;


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