From a3d5712b51aa77609c09ae4c0ef4f47b91eda58d Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 9 Aug 2021 18:50:04 -0700 Subject: [PATCH] objputrec: remove unused 'g' parameter --- lib/cgraph/rec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/cgraph/rec.c b/lib/cgraph/rec.c index 42168a730..296d650c0 100644 --- a/lib/cgraph/rec.c +++ b/lib/cgraph/rec.c @@ -60,11 +60,10 @@ Agrec_t *aggetrec(void *obj, const char *name, int mtf) } /* insert the record in data list of this object (only) */ -static void objputrec(Agraph_t * g, Agobj_t * obj, void *arg) +static void objputrec(Agobj_t * obj, void *arg) { Agrec_t *firstrec, *newrec; - NOTUSED(g); newrec = arg; firstrec = obj->data; if (firstrec == NULL) @@ -97,7 +96,7 @@ void *agbindrec(void *arg_obj, const char *recname, unsigned int recsize, if (rec == NULL && recsize > 0) { rec = agalloc(g, recsize); rec->name = agstrdup(g, recname); - objputrec(g, obj, rec); + objputrec(obj, rec); } if (move_to_front) aggetrec(arg_obj, recname, TRUE); -- 2.49.0