From 9e365069afe156f33fadfad9705e1325f894cd54 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 9 Dec 2021 20:01:44 +1100 Subject: Cleanup: move public doc-strings into headers for 'blenlib' - Added space below non doc-string comments to make it clear these aren't comments for the symbols directly below them. - Use doxy sections for some headers. - Minor improvements to doc-strings. Ref T92709 --- source/blender/blenlib/intern/smallhash.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'source/blender/blenlib/intern/smallhash.c') diff --git a/source/blender/blenlib/intern/smallhash.c b/source/blender/blenlib/intern/smallhash.c index 006a3798dcd..2278daf5516 100644 --- a/source/blender/blenlib/intern/smallhash.c +++ b/source/blender/blenlib/intern/smallhash.c @@ -214,7 +214,6 @@ void BLI_smallhash_init(SmallHash *sh) BLI_smallhash_init_ex(sh, 0); } -/* NOTE: does *not* free *sh itself! only the direct data! */ void BLI_smallhash_release(SmallHash *sh) { if (sh->buckets != sh->buckets_stack) { @@ -239,13 +238,6 @@ void BLI_smallhash_insert(SmallHash *sh, uintptr_t key, void *item) e->val = item; } -/** - * Inserts a new value to a key that may already be in ghash. - * - * Avoids #BLI_smallhash_remove, #BLI_smallhash_insert calls (double lookups) - * - * \returns true if a new key has been added. - */ bool BLI_smallhash_reinsert(SmallHash *sh, uintptr_t key, void *item) { SmallHashEntry *e = smallhash_lookup(sh, key); @@ -389,12 +381,6 @@ void BLI_smallhash_print(SmallHash *sh) #endif #ifdef DEBUG -/** - * Measure how well the hash function performs - * (1.0 is perfect - no stepping needed). - * - * Smaller is better! - */ double BLI_smallhash_calc_quality(SmallHash *sh) { uint64_t sum = 0; -- cgit v1.2.3