From 44d02f8f0ab850b5b37bc9cc2f22eea282bf3ca4 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 22 Sep 2020 21:01:06 -0700 Subject: [PATCH] remove unused sfvalue() --- lib/sfio/Sfio_f/Makefile.am | 3 +-- lib/sfio/Sfio_f/_sfvalue.c | 21 --------------------- lib/sfio/sfio.h | 3 --- lib/sfio/sfio.vcxproj | 1 - lib/sfio/sfio.vcxproj.filters | 3 --- 5 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 lib/sfio/Sfio_f/_sfvalue.c diff --git a/lib/sfio/Sfio_f/Makefile.am b/lib/sfio/Sfio_f/Makefile.am index ff4d04ca0..dcc268467 100644 --- a/lib/sfio/Sfio_f/Makefile.am +++ b/lib/sfio/Sfio_f/Makefile.am @@ -7,5 +7,4 @@ noinst_LTLIBRARIES = libsfiof_C.la libsfiof_C_la_SOURCES = \ _sffileno.c _sfgetc.c _sfputc.c \ - _sfslen.c \ - _sfvalue.c + _sfslen.c diff --git a/lib/sfio/Sfio_f/_sfvalue.c b/lib/sfio/Sfio_f/_sfvalue.c deleted file mode 100644 index e5e824274..000000000 --- a/lib/sfio/Sfio_f/_sfvalue.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 sfvalue - -ssize_t sfvalue(Sfio_t * f) -{ - return __sf_value(f); -} diff --git a/lib/sfio/sfio.h b/lib/sfio/sfio.h index d24885353..58bd639ca 100644 --- a/lib/sfio/sfio.h +++ b/lib/sfio/sfio.h @@ -351,7 +351,6 @@ extern "C" { /* miscellaneous function analogues of fast in-line functions */ extern Sfoff_t sfsize(Sfio_t *); extern int sffileno(Sfio_t *); - extern ssize_t sfvalue(Sfio_t *); extern ssize_t sfslen(void); #undef extern @@ -378,13 +377,11 @@ extern "C" { #define __sf_getc(f) (_SF_(f)->next >= _SF_(f)->endr ? _sffilbuf(_SF_(f),0) : \ (int)(*_SF_(f)->next++) ) #define __sf_fileno(f) ((f) ? _SF_(f)->file : -1) -#define __sf_value(f) ((f) ? (_SF_(f)->val) : 0) #define __sf_slen() (_Sfi) #define sfputc(f,c) ( __sf_putc((f),(c)) ) #define sfgetc(f) ( __sf_getc(f) ) #define sffileno(f) ( __sf_fileno(f) ) -#define sfvalue(f) ( __sf_value(f) ) #define sfslen() ( __sf_slen() ) #endif /* _SFIO_H */ #ifdef __cplusplus diff --git a/lib/sfio/sfio.vcxproj b/lib/sfio/sfio.vcxproj index 6db8f0fa5..3a72d7919 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 2e9c549de..ad6dacb09 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