mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
Review: Remove long_u: memfile: Refactor: mf_hashtab_T.mht_fixed: Remove.
Unused since 457bb26151
.
This commit is contained in:
@@ -1008,8 +1008,7 @@ static void mf_hash_add_item(mf_hashtab_T *mht, mf_hashitem_T *mhi)
|
|||||||
|
|
||||||
/// Grow hashtable when we have more thank 2^MHT_LOG_LOAD_FACTOR
|
/// Grow hashtable when we have more thank 2^MHT_LOG_LOAD_FACTOR
|
||||||
/// items per bucket on average.
|
/// items per bucket on average.
|
||||||
if (mht->mht_fixed == 0
|
if ((mht->mht_count >> MHT_LOG_LOAD_FACTOR) > mht->mht_mask) {
|
||||||
&& (mht->mht_count >> MHT_LOG_LOAD_FACTOR) > mht->mht_mask) {
|
|
||||||
mf_hash_grow(mht);
|
mf_hash_grow(mht);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -41,7 +41,6 @@ typedef struct mf_hashtab {
|
|||||||
/// mht_small_buckets or a newly allocated array
|
/// mht_small_buckets or a newly allocated array
|
||||||
/// when mht_small_buckets becomes too small)
|
/// when mht_small_buckets becomes too small)
|
||||||
mf_hashitem_T *mht_small_buckets[MHT_INIT_SIZE]; /// initial buckets
|
mf_hashitem_T *mht_small_buckets[MHT_INIT_SIZE]; /// initial buckets
|
||||||
char mht_fixed; /// non-zero value forbids growth
|
|
||||||
} mf_hashtab_T;
|
} mf_hashtab_T;
|
||||||
|
|
||||||
/// A block header.
|
/// A block header.
|
||||||
|
Reference in New Issue
Block a user