Revert "Include map length in diagnostics"

This reverts commit a10329f8ff.
This commit is contained in:
Manish Goregaokar 2017-10-23 13:44:47 -07:00
parent f1603b9e71
commit bf69d1b460
3 changed files with 2 additions and 11 deletions

View file

@ -896,10 +896,6 @@ impl<K, V> RawTable<K, V> {
}
}
pub fn diagnostic_count_hashes(&self) -> usize {
(0..self.capacity()).filter(|&i| unsafe { *self.raw_bucket_at(i).hash() != EMPTY_BUCKET }).count()
}
pub fn iter(&self) -> Iter<K, V> {
Iter {
iter: self.raw_buckets(),