]> granicus.if.org Git - graphviz/commitdiff
remove unused Vmheap
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Jul 2020 21:57:17 +0000 (14:57 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Jul 2020 18:53:10 +0000 (11:53 -0700)
lib/vmalloc/vmalloc.h
lib/vmalloc/vmbest.c

index b608ed19d9f2878adfe7bca4415cab4217c8b3ab..ce62e36cbf9c18fffa84e0b693fa6d38525fbc1e 100644 (file)
@@ -99,8 +99,6 @@ extern "C" {
 #define VM_DISC                4       /* discipline being changed     */
 
 
-    extern Vmalloc_t *Vmheap;  /* heap region                  */
-
     extern Vmalloc_t *vmopen(void);
     extern int vmclose(Vmalloc_t *);
     extern int vmclear(Vmalloc_t *);
index 60dcf82b325e9e0c11a31bfe29c371364d68598b..9ddb55567630324eb1f3853eb15941ef80ade116 100644 (file)
@@ -127,33 +127,3 @@ void *bestresize(Vmalloc_t *vm, void *data, size_t size, int type) {
   /* the pointer the caller gave us was not allocated by us */
   return NULL;
 }
-
-/* The heap region */
-static Vmdata_t _Vmdata = {
-    VM_MTBEST | VM_TRUST,      /* mode         */
-    0,                         /* incr         */
-    0,                         /* pool         */
-    NIL(Seg_t *),              /* seg          */
-    NIL(Block_t *),            /* free         */
-    NIL(Block_t *),            /* wild         */
-    NIL(Block_t *),            /* root         */
-    { NULL },                  /* tiny         */
-    { NULL },                  /* cache        */
-    NULL,                      /* allocated    */
-    0,                         /* size         */
-    0,                         /* capacity     */
-};
-static Vmalloc_t _Vmheap = {
-    {bestalloc,
-     bestresize,
-     bestfree,
-     0,
-     VM_MTBEST},
-    NIL(char *),               /* file         */
-    0,                         /* line         */
-    NULL,                      /* disc         */
-    &_Vmdata,                  /* data         */
-    NIL(Vmalloc_t *)           /* next             */
-};
-
-Vmalloc_t* Vmheap = &_Vmheap;