diff options
Diffstat (limited to 'paxlib/names.c')
-rw-r--r-- | paxlib/names.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/paxlib/names.c b/paxlib/names.c index 80fa83e..5766d4c 100644 --- a/paxlib/names.c +++ b/paxlib/names.c @@ -1,5 +1,5 @@ /* This file is part of GNU paxutils - Copyright (C) 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2007, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -56,7 +56,7 @@ hash_string_insert_prefix (Hash_table **table, char const *string, size_t len, } else s = xstrdup (string); - + if (! ((t || (*table = t = hash_initialize (0, 0, hash_string_hasher, hash_string_compare, 0))) @@ -76,21 +76,6 @@ hash_string_insert_prefix (Hash_table **table, char const *string, size_t len, } } -/* Return zero if TABLE contains a copy of STRING; otherwise, insert a - copy of STRING to TABLE and return 1. */ -bool -hash_string_insert (Hash_table **table, char const *string) -{ - return hash_string_insert_prefix (table, string, 0, NULL); -} - -/* Return 1 if TABLE contains STRING. */ -bool -hash_string_lookup (Hash_table const *table, char const *string) -{ - return table && hash_lookup (table, string); -} - static Hash_table *prefix_table[2]; |