From: Matthew Fernandez Date: Tue, 18 May 2021 00:05:05 +0000 (-0700) Subject: remove unused fix_fc function X-Git-Tag: 2.47.3~28^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1eb3e319635cbe30a4fd7fa595c9dff87cdc4338;p=graphviz remove unused fix_fc function --- diff --git a/lib/common/utils.c b/lib/common/utils.c index 37e1cf370..252129e4d 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -1889,24 +1889,6 @@ void gv_nodesize(node_t * n, boolean flip) } } -#ifdef _WIN32 -void fix_fc(void) -{ - char buf[28192]; - char buf2[28192]; - int cur=0; - FILE* fp; - - if((fp = fopen("fix-fc.exe", "r")) == NULL) - return ; - fclose (fp); - if (!system ("fix-fc.exe")) { - system ("del fix-fc.exe"); - system ("dot -c"); //run dot -c once too since we already run things :) - } -} -#endif - #ifndef HAVE_DRAND48 #pragma weak drand48 double drand48(void) diff --git a/lib/common/utils.h b/lib/common/utils.h index b6b7c6f15..a08ac866d 100644 --- a/lib/common/utils.h +++ b/lib/common/utils.h @@ -108,10 +108,6 @@ extern "C" { Agnodeinfo_t* ninf(Agnode_t* n); Agraphinfo_t* ginf(Agraph_t* g); Agedgeinfo_t* einf(Agedge_t* e); - /**/ -#ifdef _WIN32 - extern void fix_fc(void); -#endif #undef extern diff --git a/lib/gvc/gvc.def b/lib/gvc/gvc.def index 6b8834e20..e4bf34539 100644 --- a/lib/gvc/gvc.def +++ b/lib/gvc/gvc.def @@ -301,7 +301,6 @@ Y_invert zmalloc zrealloc colorxlate -fix_fc gvContextPlugins gvfwrite gvferror