From c2feee2ec4056f8e0b09188f6bc76083cd346085 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 1 May 2021 19:20:06 -0700 Subject: [PATCH] remove unused get_level function --- lib/edgepaint/lab.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/edgepaint/lab.c b/lib/edgepaint/lab.c index dc9265810..6fa2e6f07 100644 --- a/lib/edgepaint/lab.c +++ b/lib/edgepaint/lab.c @@ -137,23 +137,6 @@ color_rgb XYZ2RGB(color_xyz color){ return color_rgb_init(r, g, b); } -void get_level(QuadTree qt, int *level0){ - QuadTree q; - int level_max = 0, level; - int i; - - if (!qt->qts) return; - for (i = 0; i < 1<<(qt->dim); i++){ - q = qt->qts[i]; - if (q) { - level = *level0 + 1; - get_level(q, &level); - level_max = MAX(level_max, level); - } - } - *level0 = level_max; -} - double *lab_gamut_from_file(char *gamut_file, const char *lightness, int *n){ /* give a list of n points in the file defining the LAB color gamut. return NULL if the mgamut file is not found. lightness is a string of the form 0,70, or NULL. -- 2.40.0