Cleanup: make hash sizes static, remove references to smallhash
Remove BLI_ghash_hash_sizes declaration it's only user (smallhash) has been removed.
This commit is contained in:
@@ -36,13 +36,11 @@
|
||||
/**
|
||||
* Next prime after `2^n` (skipping 2 & 3).
|
||||
*/
|
||||
extern const uint BLI_ghash_hash_sizes[]; /* Quiet warning, this is only used by smallhash.c */
|
||||
const uint BLI_ghash_hash_sizes[] = {
|
||||
static const uint hashsizes[] = {
|
||||
5, 11, 17, 37, 67, 131, 257, 521, 1031,
|
||||
2053, 4099, 8209, 16411, 32771, 65537, 131101, 262147, 524309,
|
||||
1048583, 2097169, 4194319, 8388617, 16777259, 33554467, 67108879, 134217757, 268435459,
|
||||
};
|
||||
#define hashsizes BLI_ghash_hash_sizes
|
||||
|
||||
#ifdef GHASH_USE_MODULO_BUCKETS
|
||||
# define GHASH_MAX_SIZE 27
|
||||
|
||||
@@ -3022,7 +3022,7 @@ static void knife_find_line_hits(KnifeTool_OpData *kcd)
|
||||
else {
|
||||
/* This vertex isn't used so remove from `kfvs`.
|
||||
* This is useful to detect KnifeEdges that can be skipped.
|
||||
* And it optimizes smallhash_iternext a little bit. */
|
||||
* And it optimizes iteration a little bit. */
|
||||
kfvs.remove(v);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user