Skip to content

Commit 8711775

Browse files
committed
st.c: Removed unused set_add_direct_with_hash function
1 parent b542682 commit 8711775

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

st.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,30 +2921,6 @@ set_insert(set_table *tab, st_data_t key)
29212921
return 1;
29222922
}
29232923

2924-
/* Insert (KEY, HASH) into table TAB. The table should not have
2925-
entry with KEY before the insertion. */
2926-
static inline void
2927-
set_add_direct_with_hash(set_table *tab,
2928-
st_data_t key, st_hash_t hash)
2929-
{
2930-
set_table_entry *entry;
2931-
st_index_t ind;
2932-
st_index_t bin_ind;
2933-
2934-
assert(hash != RESERVED_HASH_VAL);
2935-
2936-
set_rebuild_table_if_necessary(tab);
2937-
ind = tab->entries_bound++;
2938-
entry = &tab->entries[ind];
2939-
entry->hash = hash;
2940-
entry->key = key;
2941-
tab->num_entries++;
2942-
if (tab->bins != NULL) {
2943-
bin_ind = set_find_table_bin_ind_direct(tab, hash, key);
2944-
set_bin(tab->bins, set_get_size_ind(tab), bin_ind, ind + ENTRY_BASE);
2945-
}
2946-
}
2947-
29482924
/* Create a copy of old_tab into new_tab. */
29492925
static set_table *
29502926
set_replace(set_table *new_tab, set_table *old_tab)

0 commit comments

Comments
 (0)