From c870d255ea54d7b7c00d8e7ebe872059f2f55920 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 20 Jun 2021 11:49:05 -0700 Subject: [PATCH] remove unused color_blend_rgbstring --- lib/edgepaint/lab.c | 10 ---------- lib/edgepaint/lab.h | 1 - 2 files changed, 11 deletions(-) diff --git a/lib/edgepaint/lab.c b/lib/edgepaint/lab.c index 503999b8b..299b77112 100644 --- a/lib/edgepaint/lab.c +++ b/lib/edgepaint/lab.c @@ -371,13 +371,3 @@ color_rgb color_blend_rgb(char *color_list, real ratio, int *flag){ if (lab) FREE(lab); return rgb; } - -void color_blend_rgbstring(char *color_list, real ratio, char **color0, int *flag){ - color_rgb rgb; - - if (!(*color0)){ - *color0 = malloc(sizeof(char)*7); - } - rgb = color_blend_rgb(color_list, ratio, flag); - sprintf(*color0, "%02X%02X%02X", (int) (rgb.r), (int) (rgb.g), (int) (rgb.b)); -} diff --git a/lib/edgepaint/lab.h b/lib/edgepaint/lab.h index 76bbcbabb..41067c6ce 100644 --- a/lib/edgepaint/lab.h +++ b/lib/edgepaint/lab.h @@ -40,6 +40,5 @@ void color_blend_rgb2lab(char *color_list, const int maxpoints, double **colors) If *colors0 is NULL, it will be allocated. */ color_rgb color_blend_rgb(char *color_list, const real ratio, int *flag);/* blend a color list to get one color at ratio*100 percent of the list */ -void color_blend_rgbstring(char *color_list, const real ratio, char **color0, int *flag);/* blend a color list to get one color at ratio*100 percent of the list */ #endif -- 2.40.0