Remove unused function hash_ReplaceElement

This commit is contained in:
Rangi
2021-04-16 12:36:45 -04:00
parent 1ffd7cb5bb
commit d2f6def2eb
2 changed files with 0 additions and 22 deletions

View File

@@ -64,18 +64,6 @@ void **hash_AddElement(HashMap map, char const *key, void *element)
return &newEntry->content;
}
bool hash_ReplaceElement(HashMap const map, char const *key, void *element)
{
void **node = hash_GetNode(map, key);
if (node) {
*node = element;
return true;
} else {
return false;
}
}
bool hash_RemoveElement(HashMap map, char const *key)
{
HashType hashedKey = hash(key);