From: Matthew Fernandez Date: Sun, 7 Aug 2022 17:30:23 +0000 (-0700) Subject: gvpr: remove 'Gpr_t.tmp' X-Git-Tag: 5.0.1~9^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58dffe2fe532ac7bd8dc97d788525bcaad5f8bd9;p=graphviz gvpr: remove 'Gpr_t.tmp' As of the previous commit, this is no longer used. Gitlab: #1873 --- diff --git a/lib/gvpr/gprstate.c b/lib/gvpr/gprstate.c index afe1e95b0..b8ce26174 100644 --- a/lib/gvpr/gprstate.c +++ b/lib/gvpr/gprstate.c @@ -40,12 +40,6 @@ Gpr_t *openGPRState(gpr_info* info) return state; } - if (!(state->tmp = sfstropen())) { - error(ERROR_ERROR, "Could not create state tmpfile"); - free (state); - return 0; - } - state->tvt = TV_flat; state->name_used = name_used; state->tvroot = 0; @@ -126,8 +120,6 @@ void closeGPRState(Gpr_t* state) { if (!state) return; name_used = state->name_used; - if (state->tmp) - sfclose (state->tmp); free (state->dp); free (state); } diff --git a/lib/gvpr/gprstate.h b/lib/gvpr/gprstate.h index a5f5e07b2..7ee37b5be 100644 --- a/lib/gvpr/gprstate.h +++ b/lib/gvpr/gprstate.h @@ -44,7 +44,6 @@ extern "C" { Agraph_t *target; Agraph_t *outgraph; Agobj_t *curobj; - Sfio_t *tmp; Exdisc_t *dp; Exerror_f errf; Exexit_f exitf;