]> granicus.if.org Git - graphviz/commitdiff
Remove unused code from cgraph: vmstub.h
authorErwin Janssen <erwinjanssen@outlook.com>
Wed, 21 Sep 2016 18:47:42 +0000 (20:47 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Tue, 4 Oct 2016 14:06:46 +0000 (16:06 +0200)
The header file vmstub.h is never included or used.

lib/cgraph/Makefile.am
lib/cgraph/cgraph.vcxproj
lib/cgraph/cgraph.vcxproj.filters
lib/cgraph/vmstub.h [deleted file]

index 226a0f26b84d2ab24287767beb97b63837a262b1..fcd5656dec20b94ee2c3827eb4156e786df846ab 100644 (file)
@@ -11,7 +11,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/lib/cdt
 
 pkginclude_HEADERS = cgraph.h
-noinst_HEADERS = agxbuf.h cghdr.h malloc.h vmstub.h
+noinst_HEADERS = agxbuf.h cghdr.h malloc.h
 noinst_LTLIBRARIES = libcgraph_C.la
 lib_LTLIBRARIES = libcgraph.la
 pkgconfig_DATA = libcgraph.pc
index 2d7cfeb2bc36906e72b23492707bf9e5ef9cf0b9..0392d06a19db772543ede4524f27c4db074bc495 100644 (file)
     <ClInclude Include="cghdr.h" />
     <ClInclude Include="cgraph.h" />
     <ClInclude Include="malloc.h" />
-    <ClInclude Include="vmstub.h" />
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="agerror.c" />
index cf7281c53a701be1069087d55de36ed874d776da..5817cddb73bd7fb219a8ecd1dbf01537937bdcfa 100644 (file)
@@ -27,9 +27,6 @@
     <ClInclude Include="malloc.h">
       <Filter>Header Files</Filter>
     </ClInclude>
-    <ClInclude Include="vmstub.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="agerror.c">
diff --git a/lib/cgraph/vmstub.h b/lib/cgraph/vmstub.h
deleted file mode 100644 (file)
index bb00806..0000000
+++ /dev/null
@@ -1,30 +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/
- *************************************************************************/
-
-#ifndef _VMSTUB_H
-#define _VMSTUB_H
-#include <stdlib.h>
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-typedef void Vmalloc_t;
-#define vmalloc(heap,size) malloc(size)
-#define vmopen(x,y,z) (Vmalloc_t*)(0)
-#define vmclose(x) while (0)
-#define vmresize(heap,ptr,size,oktomoveflag)  realloc((ptr),(size))
-#define vmfree(heap,ptr) free(ptr)
-#ifndef EXTERN
-#define EXTERN extern
-#endif
-EXTERN void *Vmregion;
-#endif