38880 remove unnecessary self.table.size check

This commit is contained in:
Shaun Steenkamp 2018-02-13 20:25:10 +00:00
parent f3330cea7f
commit e034dddb32
1 changed files with 0 additions and 4 deletions

View File

@ -1290,10 +1290,6 @@ impl<K, V, S> HashMap<K, V, S>
where K: Borrow<Q>,
Q: Hash + Eq
{
if self.table.size() == 0 {
return None;
}
self.search_mut(k)
.map(|bucket| {
let (k, v, _) = pop_internal(bucket);