]> granicus.if.org Git - graphviz/commitdiff
remove unused vmregion API
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 5 Jul 2020 23:31:42 +0000 (16:31 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 6 Jul 2020 00:15:35 +0000 (17:15 -0700)
lib/vmalloc/CMakeLists.txt
lib/vmalloc/Makefile.am
lib/vmalloc/vmalloc.h
lib/vmalloc/vmalloc.vcxproj
lib/vmalloc/vmalloc.vcxproj.filters
lib/vmalloc/vmhdr.h
lib/vmalloc/vmregion.c [deleted file]

index e41410c1dc3ee3a676828ac212eb83a032ec43ae..0b8734def9ff224f3b3c98dc632e5ba62f93982b 100644 (file)
@@ -12,7 +12,6 @@ add_library(vmalloc STATIC
     vmdcheap.c
     vmopen.c
     vmprivate.c
-    vmregion.c
     vmset.c
     vmstat.c
     vmstrdup.c
index 50df9ea1a7c02f873db654b8b8afab47140ea082..941ef6eb95777c24176b5903ec9a8734af1fbdb3 100644 (file)
@@ -6,7 +6,7 @@ noinst_LTLIBRARIES = libvmalloc_C.la
 
 libvmalloc_C_la_SOURCES = vmbest.c vmclear.c vmclose.c vmdcheap.c \
        vmopen.c vmprivate.c \
-       vmregion.c vmset.c vmstat.c vmstrdup.c \
+       vmset.c vmstat.c vmstrdup.c \
        vmwalk.c
 
 EXTRA_DIST = README vmalloc.vcxproj*
index 385a9c3fd879a87297015e99ee8d9d795acb4ac0..dbd816ab2fdb3826ff31e680eccdbef687a498b2 100644 (file)
@@ -117,7 +117,6 @@ extern "C" {
 
     extern long vmaddr(Vmalloc_t *, void *);
 
-    extern Vmalloc_t *vmregion(void *);
     extern int vmset(Vmalloc_t *, int, int);
 
     extern void *vmdbwatch(void *);
index 43a95fe9da2b7e19927823d7ea9552940b48e345..8158a667dac4c4eea2043deac0d8a7db8f0b5f98 100644 (file)
     <ClCompile Include="vmdcheap.c" />
     <ClCompile Include="vmopen.c" />
     <ClCompile Include="vmprivate.c" />
-    <ClCompile Include="vmregion.c" />
     <ClCompile Include="vmset.c" />
     <ClCompile Include="vmstat.c" />
     <ClCompile Include="vmstrdup.c" />
index 93fb0ec7627176e6b96a2e90ea0e4134ca4d024a..8fba3e30172e06cac7d148d679949086a587fbde 100644 (file)
@@ -41,9 +41,6 @@
     <ClCompile Include="vmprivate.c">
       <Filter>Source Files</Filter>
     </ClCompile>
-    <ClCompile Include="vmregion.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
     <ClCompile Include="vmset.c">
       <Filter>Source Files</Filter>
     </ClCompile>
index d00978b68d95947e828db9b6e7d7ce3543b6cb65..b8c69de3253c58fa7fa19f1e1ec339483e8169e7 100644 (file)
@@ -321,7 +321,6 @@ extern "C" {
 **     file:   the file where it was created.
 **     size:   the true byte count of the block
 **     seg_:   should be the same as the previous seg_.
-**             This allows the function vmregion() to work.
 **     magi:   magic bytes to detect overwrites.
 **     data:   the actual data block.
 **     magi:   more magic bytes.
diff --git a/lib/vmalloc/vmregion.c b/lib/vmalloc/vmregion.c
deleted file mode 100644 (file)
index 82da037..0000000
+++ /dev/null
@@ -1,24 +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"
-
-/*     Return the containing region of an allocated piece of memory.
-**     Beware: this only works with Vmbest and Vmtrace.
-**
-**     Written by Kiem-Phong Vo, kpv@research.att.com, 01/16/94.
-*/
-Vmalloc_t *vmregion(reg void * addr)
-{
-    return addr ? VM(BLOCK(addr)) : NIL(Vmalloc_t *);
-}