From: Matthew Fernandez Date: Wed, 23 Sep 2020 02:56:03 +0000 (-0700) Subject: remove unused sferror() X-Git-Tag: 2.46.0~20^2^2~61^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77a0d8a1d0279981bd315bc4061a8fe2cedef63c;p=graphviz remove unused sferror() --- diff --git a/lib/sfio/Sfio_f/Makefile.am b/lib/sfio/Sfio_f/Makefile.am index 424fd4cce..e6f274d3b 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 = _sferror.c \ +libsfiof_C_la_SOURCES = \ _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/_sferror.c b/lib/sfio/Sfio_f/_sferror.c deleted file mode 100644 index 45fb64a6d..000000000 --- a/lib/sfio/Sfio_f/_sferror.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 sferror - -int sferror(Sfio_t * f) -{ - return __sf_error(f); -} diff --git a/lib/sfio/sfio.h b/lib/sfio/sfio.h index abd1c86b7..ea5e7993b 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 sferror(Sfio_t *); extern int sffileno(Sfio_t *); extern int sfstacked(Sfio_t *); extern ssize_t sfvalue(Sfio_t *); @@ -402,7 +401,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_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) #define __sf_slen() (_Sfi) @@ -416,7 +414,6 @@ extern "C" { #define sfllen(v) ( __sf_llen(v) ) #define sfulen(v) ( __sf_ulen(v) ) #define sffileno(f) ( __sf_fileno(f) ) -#define sferror(f) ( __sf_error(f) ) #define sfstacked(f) ( __sf_stacked(f) ) #define sfvalue(f) ( __sf_value(f) ) #define sfslen() ( __sf_slen() ) diff --git a/lib/sfio/sfio.vcxproj b/lib/sfio/sfio.vcxproj index 2c04a7b85..240d74012 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 3bc71a4a3..c42162f6a 100644 --- a/lib/sfio/sfio.vcxproj.filters +++ b/lib/sfio/sfio.vcxproj.filters @@ -29,9 +29,6 @@ - - Source Files - Source Files