From: Matthew Fernandez Date: Sat, 17 Oct 2020 02:43:02 +0000 (-0700) Subject: remove unused sf_mutex field from Sfextern_t X-Git-Tag: 2.46.0~20^2^2~16^2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a1cf8329f852698185665d153b58b20b373684d;p=graphviz remove unused sf_mutex field from Sfextern_t --- diff --git a/lib/sfio/sfextern.c b/lib/sfio/sfextern.c index 92727eacd..976d34972 100644 --- a/lib/sfio/sfextern.c +++ b/lib/sfio/sfextern.c @@ -17,9 +17,6 @@ ** Written by Kiem-Phong Vo */ -/* code to initialize mutexes */ -static Vtmutex_t Sfmutex; - /* global variables used internally to the package */ Sfextern_t _Sfextern = { 0, /* _Sfpage */ {NIL(Sfpool_t *), 0, 0, 0, NIL(Sfio_t **)}, /* _Sfpool */ @@ -36,7 +33,6 @@ Sfextern_t _Sfextern = { 0, /* _Sfpage */ NIL(void (*)(void)), /* _Sfcleanup */ 0, /* _Sfexiting */ 0, /* _Sfdone */ - &Sfmutex /* _Sfmutex */ }; /* accessible to application code for a few fast macro functions */ diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index e9cf3bdd7..4fe8d4301 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -411,7 +411,6 @@ extern "C" { #define _Sfcleanup (_Sfextern.sf_cleanup) #define _Sfexiting (_Sfextern.sf_exiting) #define _Sfdone (_Sfextern.sf_done) -#define _Sfmutex (_Sfextern.sf_mutex) typedef struct _sfextern_s { ssize_t sf_page; struct _sfpool_s sf_pool; @@ -423,7 +422,6 @@ extern "C" { void (*sf_cleanup) (void); int sf_exiting; int sf_done; - Vtmutex_t *sf_mutex; } Sfextern_t; /* grain size for buffer increment */