From: Matthew Fernandez Date: Sat, 24 Apr 2021 04:03:30 +0000 (-0700) Subject: remove unused cat_string X-Git-Tag: 2.47.2~13^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8aa5803c97002f43440cda023d0d11971f2966d5;p=graphviz remove unused cat_string --- diff --git a/lib/sparse/DotIO.c b/lib/sparse/DotIO.c index a7d929603..3be1df79c 100644 --- a/lib/sparse/DotIO.c +++ b/lib/sparse/DotIO.c @@ -595,16 +595,6 @@ makeDotGraph (SparseMatrix A, char *name, int dim, real *x, int with_color, int return g; } - -char *cat_string(char *s1, char *s2){ - char *s; - s = malloc(sizeof(char)*(strlen(s1)+strlen(s2)+1+1)); - strcpy(s,s1); - strcat(s,"|"); - strcat(s,s2); - return s; -} - static char *cat_string3(char *s1, char *s2, char *s3, int id){ return gv_sprint_or_exit("%s|%s|%s|%d", s1, s2, s3, id); }