]> granicus.if.org Git - graphviz/commitdiff
remove unused sfeof()
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 23 Sep 2020 02:48:44 +0000 (19:48 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 30 Sep 2020 00:01:03 +0000 (17:01 -0700)
lib/sfio/Sfio_f/Makefile.am
lib/sfio/Sfio_f/_sfeof.c [deleted file]
lib/sfio/sfio.h
lib/sfio/sfio.vcxproj
lib/sfio/sfio.vcxproj.filters

index 68851bf461e6855445059b837289af92080e43fa..424fd4cceaf674b1e50142d6897b7e81be1fcc94 100644 (file)
@@ -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 (file)
index d940b78..0000000
+++ /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       <sfio/sfhdr.h>
-
-#undef sfeof
-
-int sfeof(Sfio_t * f)
-{
-    return __sf_eof(f);
-}
index 38348be05b5aee00105d440da3aaed8e0f6206d9..abd1c86b7c9e203111c5ef4fee8fcf77112f46c6 100644 (file)
@@ -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)                 )
index c4ed26eebde3dc3f0f48d962d58538c45ef3eed6..2c04a7b85fadeed770b6091a67538159accf1bd2 100644 (file)
@@ -96,7 +96,6 @@
     <ClCompile Include="sfgetm.c" />
     <ClCompile Include="sfgetr.c" />
     <ClCompile Include="sfgetu.c" />
-    <ClCompile Include="sfio_f\_sfeof.c" />
     <ClCompile Include="sfio_f\_sferror.c" />
     <ClCompile Include="sfio_f\_sffileno.c" />
     <ClCompile Include="sfio_f\_sfgetc.c" />
index f7770c782c6abf6648766ae733ec2458c1daf499..3bc71a4a3eda259f9f903352f400bbf00d8d75bc 100644 (file)
@@ -29,9 +29,6 @@
     </ClInclude>
   </ItemGroup>
   <ItemGroup>
-    <ClCompile Include="sfio_f\_sfeof.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
     <ClCompile Include="sfio_f\_sferror.c">
       <Filter>Source Files</Filter>
     </ClCompile>