From f671a5d1aa6ff3e88a6d6361b8fcd36e28ba71fd Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 11 Jul 2020 14:44:17 -0700 Subject: [PATCH] remove unused Vmbest --- lib/vmalloc/vmalloc.h | 2 -- lib/vmalloc/vmbest.c | 9 --------- 2 files changed, 11 deletions(-) diff --git a/lib/vmalloc/vmalloc.h b/lib/vmalloc/vmalloc.h index 937794797..62b1b1bd7 100644 --- a/lib/vmalloc/vmalloc.h +++ b/lib/vmalloc/vmalloc.h @@ -99,8 +99,6 @@ extern "C" { #define VM_DISC 4 /* discipline being changed */ - extern Vmethod_t *Vmbest; /* best allocation */ - extern Vmalloc_t *Vmheap; /* heap region */ extern Vmalloc_t *Vmregion; /* malloc region */ diff --git a/lib/vmalloc/vmbest.c b/lib/vmalloc/vmbest.c index dab3fe55a..c76a03db9 100644 --- a/lib/vmalloc/vmbest.c +++ b/lib/vmalloc/vmbest.c @@ -128,14 +128,6 @@ void *bestresize(Vmalloc_t *vm, void *data, size_t size, int type) { return NULL; } -static Vmethod_t _Vmbest = { - bestalloc, - bestresize, - bestfree, - 0, - VM_MTBEST -}; - /* The heap region */ static Vmdata_t _Vmdata = { VM_MTBEST | VM_TRUST, /* mode */ @@ -166,4 +158,3 @@ static Vmalloc_t _Vmheap = { Vmalloc_t* Vmheap = &_Vmheap; Vmalloc_t* Vmregion = &_Vmheap; -Vmethod_t* Vmbest = &_Vmbest; -- 2.40.0