From: Matthew Fernandez Date: Sat, 17 Oct 2020 01:56:16 +0000 (-0700) Subject: remove unused Sfonce functionality X-Git-Tag: 2.46.0~20^2^2~16^2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53418aeec1d39ea501d3850bd86c8e90884956c4;p=graphviz remove unused Sfonce functionality --- diff --git a/lib/sfio/sfextern.c b/lib/sfio/sfextern.c index 830e22159..92727eacd 100644 --- a/lib/sfio/sfextern.c +++ b/lib/sfio/sfextern.c @@ -19,11 +19,6 @@ /* code to initialize mutexes */ static Vtmutex_t Sfmutex; -static Vtonce_t Sfonce = VTONCE_INITDATA; -static void _sfoncef(void) -{ - _Sfdone = 1; -} /* global variables used internally to the package */ Sfextern_t _Sfextern = { 0, /* _Sfpage */ @@ -41,8 +36,6 @@ Sfextern_t _Sfextern = { 0, /* _Sfpage */ NIL(void (*)(void)), /* _Sfcleanup */ 0, /* _Sfexiting */ 0, /* _Sfdone */ - &Sfonce, /* _Sfonce */ - _sfoncef, /* _Sfoncef */ &Sfmutex /* _Sfmutex */ }; diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index b325f95a8..1f29c352e 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -412,8 +412,6 @@ extern "C" { #define _Sfcleanup (_Sfextern.sf_cleanup) #define _Sfexiting (_Sfextern.sf_exiting) #define _Sfdone (_Sfextern.sf_done) -#define _Sfonce (_Sfextern.sf_once) -#define _Sfoncef (_Sfextern.sf_oncef) #define _Sfmutex (_Sfextern.sf_mutex) typedef struct _sfextern_s { ssize_t sf_page; @@ -426,8 +424,6 @@ extern "C" { void (*sf_cleanup) (void); int sf_exiting; int sf_done; - Vtonce_t *sf_once; - void (*sf_oncef) (void); Vtmutex_t *sf_mutex; } Sfextern_t;