]> granicus.if.org Git - graphviz/commitdiff
common: remove 'xml_string'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 3 Oct 2021 23:48:16 +0000 (16:48 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 8 Oct 2021 14:57:43 +0000 (07:57 -0700)
All calls of this function have now been refactored to use `xml_escape`.

Related to #1868.

lib/common/utils.h
lib/common/xml.c
lib/gvc/gvc.def

index 5278804d66192536cc8ef8a5d70c47d49af55fd5..e542a7a5202fc1a8b7efb736dc366b2fd8d3cd49 100644 (file)
@@ -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);
index ecbfd2b449f02f31c93aca2f98c45f3c250d9f6d..469643c284ba41d84a1897e36df1627f3f603638 100644 (file)
@@ -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;
index 45d2b8d84981a28566324dc4d1a8b983a044436a..ef76384862f9cea89d11d33f3e51cbf39a807396 100644 (file)
@@ -294,7 +294,6 @@ Verbose
 Version    
 write_plain    
 xml_escape
-xml_string    
 xml_string0    
 xml_url_string    
 Y_invert