From 31477c669ceeaac5057883087f810b61c57780ed Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 13 Apr 2021 21:22:03 -0700 Subject: [PATCH] remove vasprintf alternative in pov rendering When we need to maintain a fallback option anyway, having a vasprintf implementation does not gain us much. Moreover, nothing in the build system was checking for the existence of vasprintf, so this code was never being used anyway. --- plugin/core/gvrender_core_pov.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/plugin/core/gvrender_core_pov.c b/plugin/core/gvrender_core_pov.c index 6124c3245..3f7ee71fa 100644 --- a/plugin/core/gvrender_core_pov.c +++ b/plugin/core/gvrender_core_pov.c @@ -316,16 +316,6 @@ static float z = 0; static char *el(GVJ_t* job, char *template, ...) { -#if defined(HAVE_VASPRINTF) - char *str; - va_list arglist; - - va_start(arglist, template); - vasprintf(&str, template, arglist); - va_end(arglist); - - return str; -#else int len; char *str; va_list arglist, arglist2; @@ -345,7 +335,6 @@ static char *el(GVJ_t* job, char *template, ...) va_end(arglist2); return str; -#endif } static char *pov_color_as_str(GVJ_t * job, gvcolor_t color, float transparency) -- 2.40.0