From 58dffe2fe532ac7bd8dc97d788525bcaad5f8bd9 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 7 Aug 2022 10:30:23 -0700 Subject: [PATCH] gvpr: remove 'Gpr_t.tmp' As of the previous commit, this is no longer used. Gitlab: #1873 --- lib/gvpr/gprstate.c | 8 -------- lib/gvpr/gprstate.h | 1 - 2 files changed, 9 deletions(-) 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; -- 2.40.0