]> granicus.if.org Git - graphviz/commitdiff
remove unused sferror()
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 23 Sep 2020 02:56:03 +0000 (19:56 -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/_sferror.c [deleted file]
lib/sfio/sfio.h
lib/sfio/sfio.vcxproj
lib/sfio/sfio.vcxproj.filters

index 424fd4cceaf674b1e50142d6897b7e81be1fcc94..e6f274d3b8c765c9e2541166718f37ac0c9b9b40 100644 (file)
@@ -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 (file)
index 45fb64a..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 sferror
-
-int sferror(Sfio_t * f)
-{
-    return __sf_error(f);
-}
index abd1c86b7c9e203111c5ef4fee8fcf77112f46c6..ea5e7993b6b53b03fa90c65c55be7777e629bcd1 100644 (file)
@@ -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()                   )
index 2c04a7b85fadeed770b6091a67538159accf1bd2..240d740126a43e1c3b7c43f2e8d3fb96983702b4 100644 (file)
@@ -96,7 +96,6 @@
     <ClCompile Include="sfgetm.c" />
     <ClCompile Include="sfgetr.c" />
     <ClCompile Include="sfgetu.c" />
-    <ClCompile Include="sfio_f\_sferror.c" />
     <ClCompile Include="sfio_f\_sffileno.c" />
     <ClCompile Include="sfio_f\_sfgetc.c" />
     <ClCompile Include="sfio_f\_sfllen.c" />
index 3bc71a4a3eda259f9f903352f400bbf00d8d75bc..c42162f6a1adbce8b8b3e46aacdcf6aa4084bad0 100644 (file)
@@ -29,9 +29,6 @@
     </ClInclude>
   </ItemGroup>
   <ItemGroup>
-    <ClCompile Include="sfio_f\_sferror.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
     <ClCompile Include="sfio_f\_sffileno.c">
       <Filter>Source Files</Filter>
     </ClCompile>