Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-04-05 11:58:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-04-05 11:58:42 +0300
commit8b55e0e8778da53c88bfc6f58973c010f141b024 (patch)
tree0afab77eb18c0b9122f2a93e02d96b951b0a41cb /source
parentd979ba0f73c0f8471817a67ab3fb42fbf6b79191 (diff)
Remove newly added function (harmless but unused)
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/intern/BLI_ghash.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c
index 06946e520a8..e2f1f83f093 100644
--- a/source/blender/blenlib/intern/BLI_ghash.c
+++ b/source/blender/blenlib/intern/BLI_ghash.c
@@ -1395,30 +1395,6 @@ bool BLI_gset_add(GSet *gs, void *key)
}
/**
- * Set counterpart to #BLI_ghash_ensure_p_ex.
- * similar to BLI_gset_add, except it returns the key pointer.
- *
- * \warning Caller _must_ write to \a r_key when returning false.
- */
-bool BLI_gset_ensure_p_ex(GSet *gs, const void *key, void ***r_key)
-{
- const unsigned int hash = ghash_keyhash((GHash *)gs, key);
- const unsigned int bucket_index = ghash_bucket_index((GHash *)gs, hash);
- GSetEntry *e = (GSetEntry *)ghash_lookup_entry_ex((GHash *)gs, key, bucket_index);
- const bool haskey = (e != NULL);
-
- if (!haskey) {
- /* pass 'key' incase we resize */
- e = BLI_mempool_alloc(((GHash *)gs)->entrypool);
- ghash_insert_ex_keyonly_entry((GHash *)gs, (void *)key, bucket_index, (Entry *)e);
- e->key = NULL; /* caller must re-assign */
- }
-
- *r_key = &e->key;
- return haskey;
-}
-
-/**
* Adds the key to the set (duplicates are managed).
* Matching #BLI_ghash_reinsert
*