aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-24 17:22:10 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-24 17:22:10 +0100
commit67f703a794272d9a241fcaa96b09fdec7b8fc7e7 (patch)
treef59d9a919283984c9a5900a44eda99dcf00b8c96
parent0709d31d5ef3ec19331abcd97545add26b7b0e13 (diff)
Cleanup: remove unused str_table functions
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--include/util/str_table.h2
-rw-r--r--lib/util/str_table.c15
2 files changed, 0 insertions, 17 deletions
diff --git a/include/util/str_table.h b/include/util/str_table.h
index 60be1d1..61f8aa5 100644
--- a/include/util/str_table.h
+++ b/include/util/str_table.h
@@ -42,8 +42,6 @@ int str_table_get_index(str_table_t *table, const char *str, size_t *idx);
SQFS_INTERNAL
const char *str_table_get_string(str_table_t *table, size_t index);
-SQFS_INTERNAL void str_table_reset_ref_count(str_table_t *table);
-
SQFS_INTERNAL void str_table_add_ref(str_table_t *table, size_t index);
SQFS_INTERNAL void str_table_del_ref(str_table_t *table, size_t index);
diff --git a/lib/util/str_table.c b/lib/util/str_table.c
index 78206e8..513b243 100644
--- a/lib/util/str_table.c
+++ b/lib/util/str_table.c
@@ -150,21 +150,6 @@ static str_bucket_t *bucket_by_index(str_table_t *table, size_t index)
return bucket;
}
-void str_table_reset_ref_count(str_table_t *table)
-{
- str_bucket_t *bucket;
- size_t i;
-
- for (i = 0; i < table->num_buckets; ++i) {
- bucket = table->buckets[i];
-
- while (bucket != NULL) {
- bucket->refcount = 0;
- bucket = bucket->next;
- }
- }
-}
-
void str_table_add_ref(str_table_t *table, size_t index)
{
str_bucket_t *bucket = bucket_by_index(table, index);