v3d: Drop unused vir_SAT() operation.
[mesa.git] / src / util / set.c
index b2aa5ba13d58e928e48e2f9e49cf407e8c1e89fe..feef96d16eaf35ff4980821a57189091dbd9413a 100644 (file)
@@ -383,6 +383,15 @@ _mesa_set_remove(struct set *ht, struct set_entry *entry)
    ht->deleted_entries++;
 }
 
+/**
+ * Removes the entry with the corresponding key, if exists.
+ */
+void
+_mesa_set_remove_key(struct set *set, const void *key)
+{
+   _mesa_set_remove(set, _mesa_set_search(set, key));
+}
+
 /**
  * This function is an iterator over the hash table.
  *