diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-10-24 15:14:49 +0200 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-11-06 22:53:42 +0100 |
commit | 844d64e9ff55336e803c43d9411bb76c19173dba (patch) | |
tree | 39698e0516bf588e8a9cfb6d6b89e7b12bad2ad5 | |
parent | 200f8ee0e572670f595d18853d18ccb8d3326db3 (diff) | |
download | rneovim-844d64e9ff55336e803c43d9411bb76c19173dba.tar.gz rneovim-844d64e9ff55336e803c43d9411bb76c19173dba.tar.bz2 rneovim-844d64e9ff55336e803c43d9411bb76c19173dba.zip |
Review: Remove long_u: memfile: Refactor: mf_hashtab_T.mht_fixed: Remove.
Unused since 457bb2615154946d273d75e07f5d5a936f50ede0.
-rw-r--r-- | src/nvim/memfile.c | 3 | ||||
-rw-r--r-- | src/nvim/memfile_defs.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/memfile.c b/src/nvim/memfile.c index 0ad2a3a718..6061ed363b 100644 --- a/src/nvim/memfile.c +++ b/src/nvim/memfile.c @@ -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 /// items per bucket on average. - if (mht->mht_fixed == 0 - && (mht->mht_count >> MHT_LOG_LOAD_FACTOR) > mht->mht_mask) { + if ((mht->mht_count >> MHT_LOG_LOAD_FACTOR) > mht->mht_mask) { mf_hash_grow(mht); } } diff --git a/src/nvim/memfile_defs.h b/src/nvim/memfile_defs.h index 723270f760..39c45c9cac 100644 --- a/src/nvim/memfile_defs.h +++ b/src/nvim/memfile_defs.h @@ -41,7 +41,6 @@ typedef struct mf_hashtab { /// mht_small_buckets or a newly allocated array /// when mht_small_buckets becomes too small) mf_hashitem_T *mht_small_buckets[MHT_INIT_SIZE]; /// initial buckets - char mht_fixed; /// non-zero value forbids growth } mf_hashtab_T; /// A block header. |