From 58debaa961ebe01458071a929eac90bb949364ca Mon Sep 17 00:00:00 2001 From: Aleksey Demakov Date: Sat, 3 Sep 2011 21:33:09 +0700 Subject: [PATCH] remove _jit_cache_get_method_list() function --- ChangeLog | 5 +++++ jit/jit-cache.c | 24 ------------------------ jit/jit-cache.h | 7 ------- 3 files changed, 5 insertions(+), 31 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8b21823..ef88bac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-09-03 Aleksey Demakov + + * jit/jit-cache.h, jit/jit-cache.c (_jit_cache_get_method_list): + function removed. + 2011-07-27 Aleksey Demakov * jit/jit-config.h: added new file as central location for all diff --git a/jit/jit-cache.c b/jit/jit-cache.c index 0f01485..77c52ec 100644 --- a/jit/jit-cache.c +++ b/jit/jit-cache.c @@ -1272,30 +1272,6 @@ static unsigned long FillMethodList(void **list, return num + FillMethodList(list + num, GetRight(node), nil, prev); } -void **_jit_cache_get_method_list(jit_cache_t cache) -{ - void *prev; - unsigned long num; - void **list; - - /* Count the number of distinct methods in the tree */ - prev = 0; - num = CountMethods(cache->head.right, &(cache->nil), &prev); - - /* Allocate a list to hold all of the method descriptors */ - list = (void **)jit_malloc((num + 1) * sizeof(void *)); - if(!list) - { - return 0; - } - - /* Fill the list with methods and then return it */ - prev = 0; - FillMethodList(list, cache->head.right, &(cache->nil), &prev); - list[num] = 0; - return list; -} - /* * Temporary structure for iterating over a method's debug list. */ diff --git a/jit/jit-cache.h b/jit/jit-cache.h index 7c8d9ce..aa180ae 100644 --- a/jit/jit-cache.h +++ b/jit/jit-cache.h @@ -166,13 +166,6 @@ void *_jit_cache_get_start_method(jit_cache_t cache, void *pc); */ void *_jit_cache_get_end_method(jit_cache_t cache, void *pc); -/* - * Get a list of all method that are presently in the cache. - * The list is terminated by a NULL, and must be free'd with - * "jit_free". Returns NULL if out of memory. - */ -void **_jit_cache_get_method_list(jit_cache_t cache); - /* * Get the native offset that is associated with a bytecode * offset within a method. The value "start" indicates the -- 2.47.3