aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-09-22 12:39:07 +0000
committerWillem Jan Palenstijn2009-09-22 12:39:07 +0000
commitf9909bfbf5f813a1d80e07e1844162f36a6980c4 (patch)
tree031f79cb900396cbcf1599d86656ed7b29167069 /common
parent4f65994267b88e46159491255147feda98648816 (diff)
downloadscummvm-rg350-f9909bfbf5f813a1d80e07e1844162f36a6980c4.tar.gz
scummvm-rg350-f9909bfbf5f813a1d80e07e1844162f36a6980c4.tar.bz2
scummvm-rg350-f9909bfbf5f813a1d80e07e1844162f36a6980c4.zip
Remove superfluous checks
svn-id: r44258
Diffstat (limited to 'common')
-rw-r--r--common/hashmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/hashmap.h b/common/hashmap.h
index 99380707b7..a48092a4a2 100644
--- a/common/hashmap.h
+++ b/common/hashmap.h
@@ -255,14 +255,14 @@ public:
iterator find(const Key &key) {
uint ctr = lookup(key);
- if (_storage[ctr] && _storage[ctr] != HASHMAP_DUMMY_NODE)
+ if (_storage[ctr])
return iterator(ctr, this);
return end();
}
const_iterator find(const Key &key) const {
uint ctr = lookup(key);
- if (_storage[ctr] && _storage[ctr] != HASHMAP_DUMMY_NODE)
+ if (_storage[ctr])
return const_iterator(ctr, this);
return end();
}