From e261d66d81d47c4a2380ffcb7b39164b8e191168 Mon Sep 17 00:00:00 2001 From: Brian Date: Sat, 21 Apr 2007 12:29:46 -0600 Subject: Remove all the USE_MEMPOOL debug code. --- src/mesa/shader/slang/slang_utility.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'src/mesa/shader/slang/slang_utility.c') diff --git a/src/mesa/shader/slang/slang_utility.c b/src/mesa/shader/slang/slang_utility.c index 786b8990df..2a2dc8e54f 100644 --- a/src/mesa/shader/slang/slang_utility.c +++ b/src/mesa/shader/slang/slang_utility.c @@ -153,16 +153,9 @@ slang_atom_pool_destruct (slang_atom_pool * pool) entry = pool->entries[i]; while (entry != NULL) { - slang_atom_entry *next; - - next = entry->next; -#if USE_MEMPOOL + slang_atom_entry *next = entry->next; _slang_free(entry->id); _slang_free(entry); -#else - slang_alloc_free(entry->id); - slang_alloc_free(entry); -#endif entry = next; } } @@ -210,11 +203,7 @@ slang_atom_pool_atom(slang_atom_pool * pool, const char * id) /* Okay, we have not found an atom. Create a new entry for it. * Note that the points to the last entry's field. */ -#if USE_MEMPOOL - *entry = (slang_atom_entry *) (_slang_alloc(sizeof(slang_atom_entry))); -#else - *entry = (slang_atom_entry *) (slang_alloc_malloc(sizeof(slang_atom_entry))); -#endif + *entry = (slang_atom_entry *) _slang_alloc(sizeof(slang_atom_entry)); if (*entry == NULL) return SLANG_ATOM_NULL; @@ -223,11 +212,7 @@ slang_atom_pool_atom(slang_atom_pool * pool, const char * id) * value. */ (**entry).next = NULL; -#if USE_MEMPOOL (**entry).id = _slang_strdup(id); -#else - (**entry).id = slang_string_duplicate(id); -#endif if ((**entry).id == NULL) return SLANG_ATOM_NULL; return (slang_atom) (**entry).id; -- cgit v1.2.3