]> granicus.if.org Git - graphviz/commitdiff
remove unused tred2
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 2 Nov 2021 00:04:38 +0000 (17:04 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 8 Nov 2021 02:57:05 +0000 (18:57 -0800)
.gitignore
cmd/tools/Makefile.am
cmd/tools/tred2.c [deleted file]

index a043d8ec388b4590a41ee880e53b333854171539..2a42ae6dc8b4df10d8db5f6698bd8a7887238502 100644 (file)
@@ -185,7 +185,6 @@ cmd/tools/mm2gv
 cmd/tools/nop
 cmd/tools/sccmap
 cmd/tools/tred
-cmd/tools/tred2
 cmd/tools/unflatten
 contrib/diffimg/diffimg
 contrib/prune/prune
index 4978feafbe3f2a2a230cc23d5078dac5ca88664b..5b78a15235191c61a5d760614f63042cdd4bcd6a 100644 (file)
@@ -121,13 +121,6 @@ ccomps.1.ps: $(srcdir)/ccomps.1
 endif
 endif
 
-#tred2_SOURCES = tred2.c
-#
-#tred2_LDADD = \
-#      $(top_builddir)/lib/ingraphs/libingraphs_C.la \
-#      $(top_builddir)/lib/cgraph/libcgraph.la \
-#      $(top_builddir)/lib/gvc/libgvc.la
-
 tred_SOURCES = tred.c
 
 tred_LDADD = \
diff --git a/cmd/tools/tred2.c b/cmd/tools/tred2.c
deleted file mode 100644 (file)
index e146fe9..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-/*************************************************************************
- * 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: Details at https://graphviz.org
- *************************************************************************/
-
-
-/*
- * Written by Stephen North
- * Updated by Emden Gansner
- */
-
-/*
- * reads a sequence of graphs on stdin, and writes their
- * transitive reduction on stdout
- */
-
-#include "config.h"
-
-#include <gvc/gvc.h>
-#include <cgraph/cgraph.h>
-#include <stdlib.h>
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <ingraphs/ingraphs.h>
-
-#include <getopt.h>
-
-char **Files;
-char *CmdName;
-
-#ifdef _WIN32 //*dependencies
-    #pragma comment( lib, "cgraph.lib" )
-    #pragma comment( lib, "ingraphs.lib" )
-    #pragma comment( lib, "gvc.lib" )
-#endif
-
-static char *useString = "Usage: %s [-?] <files>\n\
-  -? - print usage\n\
-If no files are specified, stdin is used\n";
-
-static void usage(int v)
-{
-    printf(useString, CmdName);
-    exit(v);
-}
-
-static void init(int argc, char *argv[])
-{
-    int c;
-
-    CmdName = argv[0];
-    opterr = 0;
-    while ((c = getopt(argc, argv, ":?")) != -1) {
-       switch (c) {
-       case '?':
-           if (optopt == '\0')
-               usage(0);
-           else {
-               fprintf(stderr, "%s: option -%c unrecognized\n",
-                       CmdName, optopt);
-               usage(1);
-           }
-           break;
-       }
-    }
-    argv += optind;
-    argc -= optind;
-
-    if (argc)
-       Files = argv;
-}
-
-static Agraph_t *gread(FILE * fp)
-{
-    return agread(fp, NULL);
-}
-
-int main(int argc, char **argv)
-{
-    Agraph_t *g;
-    ingraph_state ig;
-    int rc = 0;
-
-    init(argc, argv);
-    newIngraph(&ig, Files, gread);
-
-    while ((g = nextGraph(&ig)) != 0) {
-       if (agisdirected(g)) {
-           if ((rc = gvToolTred(g)))
-                break;
-            agwrite(g, stdout);
-            fflush(stdout);
-        }
-       agclose(g);
-    }
-
-    return rc;
-}
-