Andrew Talbot : dbghelp: Remove unused function.

Alexandre Julliard julliard at winehq.org
Thu Feb 5 09:21:00 CST 2009


Module: wine
Branch: master
Commit: 5b60142f948fa0c1fe3564f882dca83f1f1c5408
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5b60142f948fa0c1fe3564f882dca83f1f1c5408

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Wed Feb  4 20:39:36 2009 +0000

dbghelp: Remove unused function.

---

 dlls/dbghelp/dbghelp_private.h |    1 -
 dlls/dbghelp/storage.c         |   12 ------------
 2 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/dlls/dbghelp/dbghelp_private.h b/dlls/dbghelp/dbghelp_private.h
index 77fb47e..0345a3f 100644
--- a/dlls/dbghelp/dbghelp_private.h
+++ b/dlls/dbghelp/dbghelp_private.h
@@ -92,7 +92,6 @@ void     hash_table_init(struct pool* pool, struct hash_table* ht,
                          unsigned num_buckets);
 void     hash_table_destroy(struct hash_table* ht);
 void     hash_table_add(struct hash_table* ht, struct hash_table_elt* elt);
-void*    hash_table_find(const struct hash_table* ht, const char* name);
 
 struct hash_table_iter
 {
diff --git a/dlls/dbghelp/storage.c b/dlls/dbghelp/storage.c
index 23a45e1..d3f5949 100644
--- a/dlls/dbghelp/storage.c
+++ b/dlls/dbghelp/storage.c
@@ -396,18 +396,6 @@ void hash_table_add(struct hash_table* ht, struct hash_table_elt* elt)
     ht->num_elts++;
 }
 
-void* hash_table_find(const struct hash_table* ht, const char* name)
-{
-    unsigned                    hash = hash_table_hash(name, ht->num_buckets);
-    struct hash_table_elt*      elt;
-
-    if(!ht->buckets) return NULL;
-
-    for (elt = ht->buckets[hash]; elt; elt = elt->next)
-        if (!strcmp(name, elt->name)) return elt;
-    return NULL;
-}
-
 void hash_table_iter_init(const struct hash_table* ht, 
                           struct hash_table_iter* hti, const char* name)
 {




More information about the wine-cvs mailing list