From e39da4d1861081b827a9b7809d412dad3548a0fe Mon Sep 17 00:00:00 2001
From: Matthew Fernandez <matthew.fernandez@gmail.com>
Date: Fri, 5 Jun 2020 17:05:52 -0700
Subject: [PATCH] remove unused sffcvt.c

---
 lib/sfio/Makefile.am          |  2 +-
 lib/sfio/sffcvt.c             | 25 -------------------------
 lib/sfio/sfio.vcxproj         |  1 -
 lib/sfio/sfio.vcxproj.filters |  3 ---
 4 files changed, 1 insertion(+), 30 deletions(-)
 delete mode 100644 lib/sfio/sffcvt.c

diff --git a/lib/sfio/Makefile.am b/lib/sfio/Makefile.am
index f0878cdf4..ed2fd3fd3 100644
--- a/lib/sfio/Makefile.am
+++ b/lib/sfio/Makefile.am
@@ -9,7 +9,7 @@ noinst_HEADERS = sfhdr.h sfio.h sfio_t.h vthread.h
 noinst_LTLIBRARIES = libsfio_C.la
 
 libsfio_C_la_SOURCES = sfclose.c sfclrlock.c sfcvt.c sfdisc.c \
-	sfdlen.c sfexcept.c sfexit.c sfextern.c sffcvt.c sffilbuf.c \
+	sfdlen.c sfexcept.c sfexit.c sfextern.c sffilbuf.c \
 	sfflsbuf.c sfgetd.c sfgetl.c sfgetm.c sfgetr.c sfgetu.c \
 	sfllen.c sfmode.c sfmutex.c sfnew.c sfnotify.c \
 	sfnputc.c sfopen.c sfpkrd.c sfpoll.c sfpool.c sfpopen.c \
diff --git a/lib/sfio/sffcvt.c b/lib/sfio/sffcvt.c
deleted file mode 100644
index 1e035a2bd..000000000
--- a/lib/sfio/sffcvt.c
+++ /dev/null
@@ -1,25 +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	"sfhdr.h"
-
-/**
- * @param dval value to convert
- * @param n_digit number of digits wanted
- * @param decpt to return decimal point
- * @param sign to return sign
- */
-char *sffcvt(double dval, int n_digit, int *decpt, int *sign)
-{
-    return _sfcvt(&dval, n_digit, decpt, sign, 0);
-}
diff --git a/lib/sfio/sfio.vcxproj b/lib/sfio/sfio.vcxproj
index 6e6d3afd2..3726ba64b 100644
--- a/lib/sfio/sfio.vcxproj
+++ b/lib/sfio/sfio.vcxproj
@@ -90,7 +90,6 @@
     <ClCompile Include="sfexcept.c" />
     <ClCompile Include="sfexit.c" />
     <ClCompile Include="sfextern.c" />
-    <ClCompile Include="sffcvt.c" />
     <ClCompile Include="sffilbuf.c" />
     <ClCompile Include="sfflsbuf.c" />
     <ClCompile Include="sfgetd.c" />
diff --git a/lib/sfio/sfio.vcxproj.filters b/lib/sfio/sfio.vcxproj.filters
index 70e8c0488..1582f4be6 100644
--- a/lib/sfio/sfio.vcxproj.filters
+++ b/lib/sfio/sfio.vcxproj.filters
@@ -101,9 +101,6 @@
     <ClCompile Include="sfextern.c">
       <Filter>Source Files</Filter>
     </ClCompile>
-    <ClCompile Include="sffcvt.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
     <ClCompile Include="sffilbuf.c">
       <Filter>Source Files</Filter>
     </ClCompile>
-- 
2.40.0