]> granicus.if.org Git - graphviz/commitdiff
remove unused glCompLabelSetFontName
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 2 Jun 2021 03:15:49 +0000 (20:15 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 17:03:35 +0000 (10:03 -0700)
lib/glcomp/glcomplabel.c
lib/glcomp/glcomplabel.h

index 589b2eabe763122fcd03e3b144b5b9a348fd0fc1..326900a2c9d91a71adb4a375422f259b894e77cf 100644 (file)
@@ -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);
-}
index 0d3251abbac42efe11b4495921d9879b4a16bfaf..c2295fc5f372fbeabd702c3553fb56f29dfd5ec0 100644 (file)
@@ -22,8 +22,6 @@ extern "C" {
 /*events*/
     extern int glCompLabelDraw(glCompLabel * p);
 
-    extern void glCompLabelSetFontName(glCompLabel * p, char* fontName);
-
 #ifdef __cplusplus
 }
 #endif