From: Matthew Fernandez Date: Wed, 2 Jun 2021 03:15:49 +0000 (-0700) Subject: remove unused glCompLabelSetFontName X-Git-Tag: 2.47.3~12^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c49154e6f36fa95116b91461aaedad72dd02962;p=graphviz remove unused glCompLabelSetFontName --- diff --git a/lib/glcomp/glcomplabel.c b/lib/glcomp/glcomplabel.c index 589b2eabe..326900a2c 100644 --- a/lib/glcomp/glcomplabel.c +++ b/lib/glcomp/glcomplabel.c @@ -54,24 +54,3 @@ int glCompLabelDraw(glCompLabel * p) return 1; } -static void update_font(glCompLabel * p,char* text,char* desc,int fs) -{ - - glCompFont* temp=p->common.font; - if (strlen(text) >512) - return ; - - p->common.font=glNewFont (p->common.compset,text,&p->common.color,temp->type,desc,fs,temp->is2D); - if(temp) - glDeleteFont(temp); - free(p->text); - p->text = strdup(text); - - -} - -void glCompLabelSetFontName(glCompLabel * p, char* fontName) -{ - glCompFont* temp=p->common.font; - update_font(p,p->text,fontName,temp->size); -} diff --git a/lib/glcomp/glcomplabel.h b/lib/glcomp/glcomplabel.h index 0d3251abb..c2295fc5f 100644 --- a/lib/glcomp/glcomplabel.h +++ b/lib/glcomp/glcomplabel.h @@ -22,8 +22,6 @@ extern "C" { /*events*/ extern int glCompLabelDraw(glCompLabel * p); - extern void glCompLabelSetFontName(glCompLabel * p, char* fontName); - #ifdef __cplusplus } #endif