From 53418aeec1d39ea501d3850bd86c8e90884956c4 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 16 Oct 2020 18:56:16 -0700 Subject: [PATCH] remove unused Sfonce functionality --- lib/sfio/sfextern.c | 7 ------- lib/sfio/sfhdr.h | 4 ---- 2 files changed, 11 deletions(-) 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; -- 2.40.0