From: Matthew Fernandez Date: Sat, 8 May 2021 17:46:42 +0000 (-0700) Subject: make edgeType() static X-Git-Tag: 2.47.2~9^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0db03afbf2fd0f563ac95cdab31623b452fda73;p=graphviz make edgeType() static This function is not used outside of lib/common/utils.c and utils.h is not a shipped header. --- diff --git a/lib/common/utils.c b/lib/common/utils.c index 158a576d9..14583a729 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -1701,7 +1701,7 @@ boolean overlap_edge(edge_t *e, boxf b) /* edgeType: * Convert string to edge type. */ -int edgeType (char* s, int dflt) +static int edgeType (char* s, int dflt) { if (s == NULL || strcmp(s, "") == 0) { return dflt; diff --git a/lib/common/utils.h b/lib/common/utils.h index 239afb975..b6b7c6f15 100644 --- a/lib/common/utils.h +++ b/lib/common/utils.h @@ -93,7 +93,6 @@ extern "C" { extern Agsym_t *setAttr(graph_t*, void*, char*name, char *value, Agsym_t*); extern void setEdgeType (graph_t* g, int dflt); - extern int edgeType (char* s, int dflt); extern int is_a_cluster (Agraph_t* g); /* from postproc.c */ diff --git a/lib/gvc/gvc.def b/lib/gvc/gvc.def index 53dfaf835..6b8834e20 100644 --- a/lib/gvc/gvc.def +++ b/lib/gvc/gvc.def @@ -79,7 +79,6 @@ E_taillabel E_visitedfillcolor E_visitedpencolor E_weight -edgeType elapsed_sec emit_clusters emit_graph