[gtk/wip/baedert/for-master] ngl: Remove unused function
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] ngl: Remove unused function
- Date: Sun, 21 Mar 2021 17:00:37 +0000 (UTC)
commit ea93c4064419094afb9bf74ab4bc8471d99acd2c
Author: Timm Bäder <mail baedert org>
Date: Sun Mar 21 18:00:10 2021 +0100
ngl: Remove unused function
gsk/ngl/gsknglrenderjob.c | 31 -------------------------------
1 file changed, 31 deletions(-)
---
diff --git a/gsk/ngl/gsknglrenderjob.c b/gsk/ngl/gsknglrenderjob.c
index dc7935b699..f6cf738353 100644
--- a/gsk/ngl/gsknglrenderjob.c
+++ b/gsk/ngl/gsknglrenderjob.c
@@ -1619,37 +1619,6 @@ gsk_ngl_render_job_visit_rounded_clip_node (GskNglRenderJob *job,
}
}
-static inline void
-sort_border_sides (const GdkRGBA *colors,
- int *indices)
-{
- gboolean done[4] = {0, 0, 0, 0};
- guint cur = 0;
-
- for (guint i = 0; i < 3; i++)
- {
- if (done[i])
- continue;
-
- indices[cur] = i;
- done[i] = TRUE;
- cur++;
-
- for (guint k = i + 1; k < 4; k ++)
- {
- if (memcmp (&colors[k], &colors[i], sizeof (GdkRGBA)) == 0)
- {
- indices[cur] = k;
- done[k] = TRUE;
- cur++;
- }
- }
-
- if (cur >= 4)
- break;
- }
-}
-
static inline void
gsk_ngl_render_job_visit_rect_border_node (GskNglRenderJob *job,
const GskRenderNode *node)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]