From 9b265d99b8873466eb05a749b23f644306e56a2b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 11 Jul 2020 10:53:56 -0700 Subject: [PATCH] remove agheap() Accessing the internals of the allocator via Cgraph is no longer supported. --- CHANGELOG.md | 1 + lib/cgraph/cgraph.h | 1 - lib/cgraph/mem.c | 10 ---------- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef60933b0..c5bf448bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +- Cgraph's agheap() API has been removed ## [2.44.1] - 2020-06-29 diff --git a/lib/cgraph/cgraph.h b/lib/cgraph/cgraph.h index 36df70dc7..4e269d9b5 100644 --- a/lib/cgraph/cgraph.h +++ b/lib/cgraph/cgraph.h @@ -377,7 +377,6 @@ CGRAPH_API void *agalloc(Agraph_t * g, size_t size); CGRAPH_API void *agrealloc(Agraph_t * g, void *ptr, size_t oldsize, size_t size); CGRAPH_API void agfree(Agraph_t * g, void *ptr); -CGRAPH_API struct _vmalloc_s *agheap(Agraph_t * g); /* an engineering compromise is a joy forever */ CGRAPH_API void aginternalmapclearlocalnames(Agraph_t * g); diff --git a/lib/cgraph/mem.c b/lib/cgraph/mem.c index 8d9331920..62542c778 100644 --- a/lib/cgraph/mem.c +++ b/lib/cgraph/mem.c @@ -91,13 +91,3 @@ void agfree(Agraph_t * g, void *ptr) if (ptr) (AGDISC(g, mem)->free) (AGCLOS(g, mem), ptr); } - -#ifndef _VMALLOC_H -struct _vmalloc_s { - char unused; -}; -#endif -struct _vmalloc_s *agheap(Agraph_t * g) -{ - return AGCLOS(g, mem); -} -- 2.40.0