From: Matthew Fernandez Date: Sun, 5 Jul 2020 23:31:42 +0000 (-0700) Subject: remove unused vmregion API X-Git-Tag: 2.46.0~20^2^2~193^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=356dc37383b5e33a55ff8c08fda1378c4f6a0fea;p=graphviz remove unused vmregion API --- diff --git a/lib/vmalloc/CMakeLists.txt b/lib/vmalloc/CMakeLists.txt index e41410c1d..0b8734def 100644 --- a/lib/vmalloc/CMakeLists.txt +++ b/lib/vmalloc/CMakeLists.txt @@ -12,7 +12,6 @@ add_library(vmalloc STATIC vmdcheap.c vmopen.c vmprivate.c - vmregion.c vmset.c vmstat.c vmstrdup.c diff --git a/lib/vmalloc/Makefile.am b/lib/vmalloc/Makefile.am index 50df9ea1a..941ef6eb9 100644 --- a/lib/vmalloc/Makefile.am +++ b/lib/vmalloc/Makefile.am @@ -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* diff --git a/lib/vmalloc/vmalloc.h b/lib/vmalloc/vmalloc.h index 385a9c3fd..dbd816ab2 100644 --- a/lib/vmalloc/vmalloc.h +++ b/lib/vmalloc/vmalloc.h @@ -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 *); diff --git a/lib/vmalloc/vmalloc.vcxproj b/lib/vmalloc/vmalloc.vcxproj index 43a95fe9d..8158a667d 100644 --- a/lib/vmalloc/vmalloc.vcxproj +++ b/lib/vmalloc/vmalloc.vcxproj @@ -102,7 +102,6 @@ - diff --git a/lib/vmalloc/vmalloc.vcxproj.filters b/lib/vmalloc/vmalloc.vcxproj.filters index 93fb0ec76..8fba3e301 100644 --- a/lib/vmalloc/vmalloc.vcxproj.filters +++ b/lib/vmalloc/vmalloc.vcxproj.filters @@ -41,9 +41,6 @@ Source Files - - Source Files - Source Files diff --git a/lib/vmalloc/vmhdr.h b/lib/vmalloc/vmhdr.h index d00978b68..b8c69de32 100644 --- a/lib/vmalloc/vmhdr.h +++ b/lib/vmalloc/vmhdr.h @@ -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 index 82da03799..000000000 --- a/lib/vmalloc/vmregion.c +++ /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 *); -}