]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
remove _jit_cache_get_method_list() function
authorAleksey Demakov <ademakov@gmail.com>
Sat, 3 Sep 2011 14:33:09 +0000 (21:33 +0700)
committerAleksey Demakov <ademakov@gmail.com>
Sat, 3 Sep 2011 14:33:09 +0000 (21:33 +0700)
ChangeLog
jit/jit-cache.c
jit/jit-cache.h

index 8b21823a65eda7759129886221e4abea0a9f7696..ef88bac1fc30f9c925edb82bea212b1193e72be7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-03  Aleksey Demakov  <ademakov@gmail.com>
+
+       * jit/jit-cache.h, jit/jit-cache.c (_jit_cache_get_method_list):
+       function removed.
+
 2011-07-27  Aleksey Demakov  <ademakov@gmail.com>
 
        * jit/jit-config.h: added new file as central location for all
index 0f01485cf0660b1521199bb054608d8aed745ec0..77c52eccb2411dbd55dac4edfafc42af53bebaff 100644 (file)
@@ -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.
  */
index 7c8d9ced86b3c39e9e9969ef878dd92febcff517..aa180ae3ef8ddd726908d2b6ecfd3eee49fd3cff 100644 (file)
@@ -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