From 7c60cd3f921f4ef31b05342c7da1f84c61ffd24e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 9 Oct 2020 17:03:14 -0700 Subject: [PATCH] remove unused sfnotify() --- lib/sfio/Makefile.am | 2 +- lib/sfio/sfio.h | 1 - lib/sfio/sfio.vcxproj | 1 - lib/sfio/sfio.vcxproj.filters | 3 --- lib/sfio/sfnotify.c | 25 ------------------------- 5 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 lib/sfio/sfnotify.c diff --git a/lib/sfio/Makefile.am b/lib/sfio/Makefile.am index d89ed0533..7190a07f1 100644 --- a/lib/sfio/Makefile.am +++ b/lib/sfio/Makefile.am @@ -11,7 +11,7 @@ noinst_LTLIBRARIES = libsfio_C.la libsfio_C_la_SOURCES = sfclose.c sfcvt.c sfdisc.c \ sfexcept.c sfexit.c sfextern.c sffilbuf.c \ sfflsbuf.c \ - sfmode.c sfnew.c sfnotify.c \ + sfmode.c sfnew.c \ sfnputc.c sfopen.c sfpkrd.c sfpoll.c sfpool.c \ sfprintf.c sfprints.c sfpurge.c \ sfputr.c sfraise.c sfrd.c sfread.c \ diff --git a/lib/sfio/sfio.h b/lib/sfio/sfio.h index d0b703f2d..42df58ed0 100644 --- a/lib/sfio/sfio.h +++ b/lib/sfio/sfio.h @@ -300,7 +300,6 @@ extern "C" { extern void *sfsetbuf(Sfio_t *, void *, size_t); extern Sfdisc_t *sfdisc(Sfio_t *, Sfdisc_t *); extern int sfraise(Sfio_t *, int, void *); - extern int sfnotify(void (*)(Sfio_t *, int, int)); extern int sfset(Sfio_t *, int, int); extern int sfsetfd(Sfio_t *, int); extern Sfio_t *sfpool(Sfio_t *, Sfio_t *, int); diff --git a/lib/sfio/sfio.vcxproj b/lib/sfio/sfio.vcxproj index 740cd9541..7101d882b 100644 --- a/lib/sfio/sfio.vcxproj +++ b/lib/sfio/sfio.vcxproj @@ -96,7 +96,6 @@ - diff --git a/lib/sfio/sfio.vcxproj.filters b/lib/sfio/sfio.vcxproj.filters index 395a32095..06bd69497 100644 --- a/lib/sfio/sfio.vcxproj.filters +++ b/lib/sfio/sfio.vcxproj.filters @@ -71,9 +71,6 @@ Source Files - - Source Files - Source Files diff --git a/lib/sfio/sfnotify.c b/lib/sfio/sfnotify.c deleted file mode 100644 index 2f9f865ca..000000000 --- a/lib/sfio/sfnotify.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 - - -/* Set the function to be called when a stream is opened or closed -** -** Written by Kiem-Phong Vo. -*/ -int sfnotify(void (*notify) (Sfio_t *, int, int)) -{ - _Sfnotify = notify; - return 0; -} -- 2.40.0