]> granicus.if.org Git - graphviz/commitdiff
gvpr: remove 'Gpr_t.tmp'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 7 Aug 2022 17:30:23 +0000 (10:30 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 13 Aug 2022 16:18:53 +0000 (09:18 -0700)
As of the previous commit, this is no longer used.

Gitlab: #1873

lib/gvpr/gprstate.c
lib/gvpr/gprstate.h

index afe1e95b05bac83c9fdf3143df142a66a5e2f6a1..b8ce26174140d60acb80a509d480d8a055755410 100644 (file)
@@ -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);
 }
index a5f5e07b28b49880f23ed899465a4d2a0c81a595..7ee37b5be9d6d8d72141424fdd998215e010d2b3 100644 (file)
@@ -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;