]> granicus.if.org Git - graphviz/commitdiff
remove now unused Vmdcheap
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Jul 2020 20:37:02 +0000 (13:37 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Jul 2020 18:53:10 +0000 (11:53 -0700)
lib/vmalloc/CMakeLists.txt
lib/vmalloc/Makefile.am
lib/vmalloc/vmalloc.h
lib/vmalloc/vmalloc.vcxproj
lib/vmalloc/vmalloc.vcxproj.filters
lib/vmalloc/vmdcheap.c [deleted file]

index 69d2a976ad1f72eaadf92a83c5bb8cd74db00c12..9bdd5087e5efe60bf8fe72d89fb41ac6edc5bcaa 100644 (file)
@@ -9,7 +9,6 @@ add_library(vmalloc STATIC
     vmbest.c
     vmclear.c
     vmclose.c
-    vmdcheap.c
     vmopen.c
     vmstrdup.c
 )
index f561cf6a248b9402915eb54969495106dce50965..eeb0c10a89cd0e47a17b2a25ced55216eaca870f 100644 (file)
@@ -4,7 +4,7 @@
 noinst_HEADERS = vmalloc.h vmhdr.h
 noinst_LTLIBRARIES = libvmalloc_C.la
 
-libvmalloc_C_la_SOURCES = vmbest.c vmclear.c vmclose.c vmdcheap.c \
+libvmalloc_C_la_SOURCES = vmbest.c vmclear.c vmclose.c \
        vmopen.c \
        vmstrdup.c
 
index 8ef85d717b1c0d6d3ebf0849ad720cb6a15ccf9f..9f7f6aba6c1681ed84c44132893512cde08c84dc 100644 (file)
@@ -101,7 +101,6 @@ extern "C" {
 
     extern Vmethod_t *Vmbest;  /* best allocation              */
 
-    extern Vmdisc_t *Vmdcheap; /* heap discipline              */
     extern Vmdisc_t *Vmdcsbrk; /* sbrk discipline              */
 
     extern Vmalloc_t *Vmheap;  /* heap region                  */
index 6a3d0b02d117d776746d665a5cbc0c827b293c49..9df5a9229ae0fe334df41784c2fa149d04c981d7 100644 (file)
@@ -99,7 +99,6 @@
     <ClCompile Include="vmbest.c" />
     <ClCompile Include="vmclear.c" />
     <ClCompile Include="vmclose.c" />
-    <ClCompile Include="vmdcheap.c" />
     <ClCompile Include="vmopen.c" />
     <ClCompile Include="vmstrdup.c" />
   </ItemGroup>
index fb001441278a2a56539814152ad736bb2b2ad8e0..ef5eee1c5d2ab67508af0997024bd4df276d8215 100644 (file)
@@ -32,9 +32,6 @@
     <ClCompile Include="vmclose.c">
       <Filter>Source Files</Filter>
     </ClCompile>
-    <ClCompile Include="vmdcheap.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
     <ClCompile Include="vmopen.c">
       <Filter>Source Files</Filter>
     </ClCompile>
diff --git a/lib/vmalloc/vmdcheap.c b/lib/vmalloc/vmdcheap.c
deleted file mode 100644 (file)
index c1d52e7..0000000
+++ /dev/null
@@ -1,43 +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       "vmhdr.h"
-
-/*     A discipline to get memory from the heap.
-**
-**     Written by Kiem-Phong Vo, kpv@research.att.com, 01/16/94.
-*/
-/**
- * @param vm region doing allocation from
- * @param caddr current low address
- * @param csize current size
- * @param nsize new size
- * @param disc discipline structure
- */
-static void *heapmem(Vmalloc_t * vm, void * caddr,
-                      size_t csize, size_t nsize, Vmdisc_t * disc)
-{
-    NOTUSED(vm);
-    NOTUSED(disc);
-
-    if (csize == 0)
-       return vmalloc(Vmheap, nsize);
-    else if (nsize == 0)
-       return vmfree(Vmheap, caddr) >= 0 ? caddr : NIL(void *);
-    else
-       return vmresize(Vmheap, caddr, nsize, 0);
-}
-
-static Vmdisc_t _Vmdcheap = { heapmem, NIL(Vmexcept_f), 0 };
-
-Vmdisc_t* Vmdcheap = &_Vmdcheap;