From: Matthew Fernandez Date: Sat, 17 Oct 2020 01:59:00 +0000 (-0700) Subject: remove SFONCE() no-op X-Git-Tag: 2.46.0~20^2^2~16^2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=952c561c3670d6facaf19147a26dfe5989efbe07;p=graphviz remove SFONCE() no-op --- diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index 179de33f6..b325f95a8 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -87,8 +87,6 @@ extern "C" { #undef SF_MTSAFE /* no need to worry about thread-safety */ #define SF_MTSAFE 0 -#define SFONCE() (void)(0) - #define SFMTXLOCK(f) (void)(0) #define SFMTXUNLOCK(f) (void)(0) #define SFMTXSTART(f,v) { if(!f) return(v); } diff --git a/lib/sfio/sfmode.c b/lib/sfio/sfmode.c index b092b249a..d673e49e7 100644 --- a/lib/sfio/sfmode.c +++ b/lib/sfio/sfmode.c @@ -300,8 +300,6 @@ int _sfmode(Sfio_t * f, int wanted, int local) Sfoff_t addr; int rv = 0; - SFONCE(); /* initialize mutexes */ - if ((!local && SFFROZEN(f)) || (!(f->flags & SF_STRING) && f->file < 0)) { if (local || !f->disc || !f->disc->exceptf) { diff --git a/lib/sfio/sfnew.c b/lib/sfio/sfnew.c index 2f90746db..42bb62d30 100644 --- a/lib/sfio/sfnew.c +++ b/lib/sfio/sfnew.c @@ -33,8 +33,6 @@ Sfio_t *sfnew(Sfio_t * oldf, void * buf, size_t size, int file, Sfio_t *f; int sflags; - SFONCE(); /* initialize mutexes */ - if (!(flags & SF_RDWR)) return NIL(Sfio_t *); diff --git a/lib/sfio/sfsetbuf.c b/lib/sfio/sfsetbuf.c index cf2090d4b..183b5833a 100644 --- a/lib/sfio/sfsetbuf.c +++ b/lib/sfio/sfsetbuf.c @@ -63,8 +63,6 @@ void *sfsetbuf(Sfio_t * f, void * buf, size_t size) int oflags, init, local; Stat_t st; - SFONCE(); - SFMTXSTART(f, NIL(void *)); GETLOCAL(f, local);