From: Matthew Fernandez Date: Sun, 3 Oct 2021 23:48:16 +0000 (-0700) Subject: common: remove 'xml_string' X-Git-Tag: 2.49.2~19^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=400d230a2d6448c3361e2ed06c122d815324ff8a;p=graphviz common: remove 'xml_string' All calls of this function have now been refactored to use `xml_escape`. Related to #1868. --- diff --git a/lib/common/utils.h b/lib/common/utils.h index 5278804d6..e542a7a52 100644 --- a/lib/common/utils.h +++ b/lib/common/utils.h @@ -61,7 +61,6 @@ extern "C" { int (*cb)(void *state, const char *s), void *state); - UTILS_API char *xml_string(char *str); UTILS_API char *xml_string0(char *str, boolean raw); UTILS_API void write_plain(GVJ_t * job, graph_t * g, FILE * f, boolean extend); UTILS_API double yDir (double y); diff --git a/lib/common/xml.c b/lib/common/xml.c index ecbfd2b44..469643c28 100644 --- a/lib/common/xml.c +++ b/lib/common/xml.c @@ -116,11 +116,6 @@ int xml_escape(const char *s, xml_flags_t flags, return rc; } -char *xml_string(char *s) -{ - return xml_string0 (s, FALSE); -} - // a dynamically resizable string typedef struct { char *base; diff --git a/lib/gvc/gvc.def b/lib/gvc/gvc.def index 45d2b8d84..ef7638486 100644 --- a/lib/gvc/gvc.def +++ b/lib/gvc/gvc.def @@ -294,7 +294,6 @@ Verbose Version write_plain xml_escape -xml_string xml_string0 xml_url_string Y_invert