From: Matthew Fernandez Date: Sun, 7 Nov 2021 01:23:05 +0000 (-0700) Subject: parse_layerselect: remove unused 'g' parameter X-Git-Tag: 2.50.0~39^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5cfa6f503490834152722a947c0801f195aadfcc;p=graphviz parse_layerselect: remove unused 'g' parameter --- diff --git a/lib/common/emit.c b/lib/common/emit.c index d1a2ce907..f1000cb95 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -1101,8 +1101,7 @@ static bool selectedlayer(GVJ_t *job, char *spec) * efficient way to do this, but this is simple and until we find people * using huge numbers of layers, it should be adequate. */ -static int* parse_layerselect(GVC_t *gvc, graph_t * g, char *p) -{ +static int *parse_layerselect(GVC_t *gvc, char *p) { int* laylist = N_GNEW(gvc->numLayers+2,int); int i, cnt = 0; for (i = 1; i <=gvc->numLayers; i++) { @@ -1199,7 +1198,7 @@ static void init_layering(GVC_t * gvc, graph_t * g) if ((str = agget(g, "layers")) != 0) { gvc->numLayers = parse_layers(gvc, g, str); if ((str = agget(g, "layerselect")) != 0 && *str) { - gvc->layerlist = parse_layerselect(gvc, g, str); + gvc->layerlist = parse_layerselect(gvc, str); } } else { gvc->layerIDs = NULL;