From: Matthew Fernandez Date: Sun, 2 May 2021 02:20:06 +0000 (-0700) Subject: remove unused get_level function X-Git-Tag: 2.47.2~7^2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2feee2ec4056f8e0b09188f6bc76083cd346085;p=graphviz remove unused get_level function --- 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.