]> granicus.if.org Git - graphviz/commitdiff
remove unused sfdcslow()
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 28 Aug 2020 14:12:19 +0000 (07:12 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 4 Sep 2020 00:02:31 +0000 (17:02 -0700)
lib/sfio/Sfio_dc/Makefile.am
lib/sfio/Sfio_dc/sfdcslow.c [deleted file]
lib/sfio/Sfio_dc/sfdisc.h

index 5ca2869b6562ccd54d73ef35ed33c9aade1f2ec2..809221a9ccfdee5541ac99627fdca6179003e855 100644 (file)
@@ -7,7 +7,7 @@ noinst_HEADERS = sfdchdr.h sfdisc.h
 noinst_LTLIBRARIES = libsfiodc_C.la
 
 libsfiodc_C_la_SOURCES = sfdcdos.c sfdcfilter.c sfdclzw.c \
-       sfdcslow.c sfdcsubstream.c sfdctee.c sfdcunion.c
+       sfdcsubstream.c sfdctee.c sfdcunion.c
 
 ${top_builddir}/FEATURE/sfio:  ${top_srcdir}/lib/sfio/features/sfio
        mkdir -p ${top_builddir}/FEATURE
diff --git a/lib/sfio/Sfio_dc/sfdcslow.c b/lib/sfio/Sfio_dc/sfdcslow.c
deleted file mode 100644 (file)
index a877445..0000000
+++ /dev/null
@@ -1,61 +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/sfdchdr.h>
-
-/*     Make a stream op return immediately on interrupts.
-**     This is useful on slow streams (hence the name).
-**
-**     Written by Glenn Fowler (03/18/1998).
-*/
-
-static int slowexcept(Sfio_t * f, int type, void * v, Sfdisc_t * disc)
-{
-    NOTUSED(f);
-    NOTUSED(v);
-    NOTUSED(disc);
-
-    switch (type) {
-    case SF_FINAL:
-    case SF_DPOP:
-       free(disc);
-       break;
-    case SF_READ:
-    case SF_WRITE:
-       if (errno == EINTR)
-           return (-1);
-       break;
-    }
-
-    return (0);
-}
-
-int sfdcslow(Sfio_t * f)
-{
-    Sfdisc_t *disc;
-
-    if (!(disc = (Sfdisc_t *) malloc(sizeof(Sfdisc_t))))
-       return (-1);
-
-    disc->readf = NIL(Sfread_f);
-    disc->writef = NIL(Sfwrite_f);
-    disc->seekf = NIL(Sfseek_f);
-    disc->exceptf = slowexcept;
-
-    if (sfdisc(f, disc) != disc) {
-       free(disc);
-       return (-1);
-    }
-
-    return (0);
-}
index b7de9c5ce2b3421621da6c581a6f1ab9d7d68537..854f565d26581ab074166e66a02e6ef2f7981812 100644 (file)
@@ -24,7 +24,6 @@ extern "C" {
     extern int sfdcdos(Sfio_t *);
     extern int sfdcfilter(Sfio_t *, const char *);
     extern int sfdclzw(Sfio_t *);
-    extern int sfdcslow(Sfio_t *);
     extern int sfdcsubstream(Sfio_t *, Sfio_t *, Sfoff_t, Sfoff_t);
     extern int sfdctee(Sfio_t *, Sfio_t *);
     extern int sfdcunion(Sfio_t *, Sfio_t **, int);