From 76436febaba79ac186ecf4d44a470e043f7fadf9 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 22 Sep 2020 20:45:39 -0700 Subject: [PATCH] remove unused sfstacked() --- lib/sfio/Sfio_f/Makefile.am | 2 +- lib/sfio/Sfio_f/_sfstacked.c | 21 --------------------- lib/sfio/sfio.h | 3 --- lib/sfio/sfio.vcxproj | 1 - lib/sfio/sfio.vcxproj.filters | 3 --- 5 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 lib/sfio/Sfio_f/_sfstacked.c diff --git a/lib/sfio/Sfio_f/Makefile.am b/lib/sfio/Sfio_f/Makefile.am index 3c6c61feb..f40407552 100644 --- a/lib/sfio/Sfio_f/Makefile.am +++ b/lib/sfio/Sfio_f/Makefile.am @@ -7,5 +7,5 @@ noinst_LTLIBRARIES = libsfiof_C.la libsfiof_C_la_SOURCES = \ _sffileno.c _sfgetc.c _sfputc.c \ - _sfslen.c _sfstacked.c \ + _sfslen.c \ _sfulen.c _sfvalue.c diff --git a/lib/sfio/Sfio_f/_sfstacked.c b/lib/sfio/Sfio_f/_sfstacked.c deleted file mode 100644 index 621232ae1..000000000 --- a/lib/sfio/Sfio_f/_sfstacked.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 sfstacked - -int sfstacked(Sfio_t * f) -{ - return __sf_stacked(f); -} diff --git a/lib/sfio/sfio.h b/lib/sfio/sfio.h index 2d619ddea..a64ffc0a6 100644 --- a/lib/sfio/sfio.h +++ b/lib/sfio/sfio.h @@ -356,7 +356,6 @@ extern "C" { /* miscellaneous function analogues of fast in-line functions */ extern Sfoff_t sfsize(Sfio_t *); extern int sffileno(Sfio_t *); - extern int sfstacked(Sfio_t *); extern ssize_t sfvalue(Sfio_t *); extern ssize_t sfslen(void); @@ -386,7 +385,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_stacked(f) ((f) ? (_SF_(f)->push != (Sfio_t*)0) : 0) #define __sf_value(f) ((f) ? (_SF_(f)->val) : 0) #define __sf_slen() (_Sfi) @@ -394,7 +392,6 @@ extern "C" { #define sfgetc(f) ( __sf_getc(f) ) #define sfulen(v) ( __sf_ulen(v) ) #define sffileno(f) ( __sf_fileno(f) ) -#define sfstacked(f) ( __sf_stacked(f) ) #define sfvalue(f) ( __sf_value(f) ) #define sfslen() ( __sf_slen() ) #endif /* _SFIO_H */ diff --git a/lib/sfio/sfio.vcxproj b/lib/sfio/sfio.vcxproj index 8cc096911..ccf5d26df 100644 --- a/lib/sfio/sfio.vcxproj +++ b/lib/sfio/sfio.vcxproj @@ -100,7 +100,6 @@ - diff --git a/lib/sfio/sfio.vcxproj.filters b/lib/sfio/sfio.vcxproj.filters index c1f08c16b..be593e052 100644 --- a/lib/sfio/sfio.vcxproj.filters +++ b/lib/sfio/sfio.vcxproj.filters @@ -41,9 +41,6 @@ Source Files - - Source Files - Source Files -- 2.40.0