Remove superfluous checks
svn-id: r44258
This commit is contained in:
parent
4f65994267
commit
f9909bfbf5
1 changed files with 2 additions and 2 deletions
|
@ -255,14 +255,14 @@ public:
|
||||||
|
|
||||||
iterator find(const Key &key) {
|
iterator find(const Key &key) {
|
||||||
uint ctr = lookup(key);
|
uint ctr = lookup(key);
|
||||||
if (_storage[ctr] && _storage[ctr] != HASHMAP_DUMMY_NODE)
|
if (_storage[ctr])
|
||||||
return iterator(ctr, this);
|
return iterator(ctr, this);
|
||||||
return end();
|
return end();
|
||||||
}
|
}
|
||||||
|
|
||||||
const_iterator find(const Key &key) const {
|
const_iterator find(const Key &key) const {
|
||||||
uint ctr = lookup(key);
|
uint ctr = lookup(key);
|
||||||
if (_storage[ctr] && _storage[ctr] != HASHMAP_DUMMY_NODE)
|
if (_storage[ctr])
|
||||||
return const_iterator(ctr, this);
|
return const_iterator(ctr, this);
|
||||||
return end();
|
return end();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue