From f42fcb6759c1614fc07bae546a9da47c20d389bb Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 19 Apr 2022 19:42:20 -0700 Subject: [PATCH] common: inline and remove 'agputs' --- lib/common/output.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) -- 2.40.0