From: Matthew Fernandez Date: Wed, 20 Apr 2022 02:42:20 +0000 (-0700) Subject: common: inline and remove 'agputs' X-Git-Tag: 4.0.0~74^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f42fcb6759c1614fc07bae546a9da47c20d389bb;p=graphviz common: inline and remove 'agputs' --- diff --git a/lib/common/output.c b/lib/common/output.c index 830ff1c8f..36f8f6ce8 100644 --- a/lib/common/output.c +++ b/lib/common/output.c @@ -28,11 +28,6 @@ double yDir (double y) static int (*print)(void *chan, const char *format, ...); -static void agputs (const char* s, FILE* fp) -{ - print(fp, "%s", s); -} - static void printpoint(FILE * f, pointf p) { print(f, " %.5g %.5g", PS2INCH(p.x), PS2INCH(YDIR(p.y))); @@ -144,7 +139,7 @@ void write_plain(GVJ_t *job, graph_t *g, FILE *f, bool extend) { late_nnstring(e, E_color, DEFAULT_COLOR)); } } - agputs("stop\n", f); + print(f, "stop\n"); } static void set_record_rects(node_t * n, field_t * f, agxbuf * xb)