From: Matthew Fernandez Date: Wed, 23 Sep 2020 02:48:44 +0000 (-0700) Subject: remove unused sfeof() X-Git-Tag: 2.46.0~20^2^2~61^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34dc4b77f3e0f645e42aa30d87b470d609f19f6a;p=graphviz remove unused sfeof() --- diff --git a/lib/sfio/Sfio_f/Makefile.am b/lib/sfio/Sfio_f/Makefile.am index 68851bf46..424fd4cce 100644 --- a/lib/sfio/Sfio_f/Makefile.am +++ b/lib/sfio/Sfio_f/Makefile.am @@ -5,7 +5,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/lib noinst_LTLIBRARIES = libsfiof_C.la -libsfiof_C_la_SOURCES = _sfeof.c _sferror.c \ +libsfiof_C_la_SOURCES = _sferror.c \ _sffileno.c _sfgetc.c _sfllen.c _sfputc.c _sfputd.c \ _sfputl.c _sfputm.c _sfputu.c _sfslen.c _sfstacked.c \ _sfulen.c _sfvalue.c diff --git a/lib/sfio/Sfio_f/_sfeof.c b/lib/sfio/Sfio_f/_sfeof.c deleted file mode 100644 index d940b78b7..000000000 --- a/lib/sfio/Sfio_f/_sfeof.c +++ /dev/null @@ -1,21 +0,0 @@ -/* $Id$ $Revision$ */ -/* vim:set shiftwidth=4 ts=8: */ - -/************************************************************************* - * Copyright (c) 2011 AT&T Intellectual Property - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: See CVS logs. Details at http://www.graphviz.org/ - *************************************************************************/ - -#include - -#undef sfeof - -int sfeof(Sfio_t * f) -{ - return __sf_eof(f); -} diff --git a/lib/sfio/sfio.h b/lib/sfio/sfio.h index 38348be05..abd1c86b7 100644 --- a/lib/sfio/sfio.h +++ b/lib/sfio/sfio.h @@ -365,7 +365,6 @@ extern "C" { /* miscellaneous function analogues of fast in-line functions */ extern Sfoff_t sfsize(Sfio_t *); - extern int sfeof(Sfio_t *); extern int sferror(Sfio_t *); extern int sffileno(Sfio_t *); extern int sfstacked(Sfio_t *); @@ -403,7 +402,6 @@ extern "C" { #define __sf_ulen(v) ((Sfulong_t)(v) < SF_U1 ? 1 : (Sfulong_t)(v) < SF_U2 ? 2 : \ (Sfulong_t)(v) < SF_U3 ? 3 : (Sfulong_t)(v) < SF_U4 ? 4 : 5) #define __sf_fileno(f) ((f) ? _SF_(f)->file : -1) -#define __sf_eof(f) ((f) ? (_SF_(f)->flags&SF_EOF) : 0) #define __sf_error(f) ((f) ? (_SF_(f)->flags&SF_ERROR) : 0) #define __sf_stacked(f) ((f) ? (_SF_(f)->push != (Sfio_t*)0) : 0) #define __sf_value(f) ((f) ? (_SF_(f)->val) : 0) @@ -418,7 +416,6 @@ extern "C" { #define sfllen(v) ( __sf_llen(v) ) #define sfulen(v) ( __sf_ulen(v) ) #define sffileno(f) ( __sf_fileno(f) ) -#define sfeof(f) ( __sf_eof(f) ) #define sferror(f) ( __sf_error(f) ) #define sfstacked(f) ( __sf_stacked(f) ) #define sfvalue(f) ( __sf_value(f) ) diff --git a/lib/sfio/sfio.vcxproj b/lib/sfio/sfio.vcxproj index c4ed26eeb..2c04a7b85 100644 --- a/lib/sfio/sfio.vcxproj +++ b/lib/sfio/sfio.vcxproj @@ -96,7 +96,6 @@ - diff --git a/lib/sfio/sfio.vcxproj.filters b/lib/sfio/sfio.vcxproj.filters index f7770c782..3bc71a4a3 100644 --- a/lib/sfio/sfio.vcxproj.filters +++ b/lib/sfio/sfio.vcxproj.filters @@ -29,9 +29,6 @@ - - Source Files - Source Files