From f9909bfbf5f813a1d80e07e1844162f36a6980c4 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 22 Sep 2009 12:39:07 +0000 Subject: Remove superfluous checks svn-id: r44258 --- common/hashmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') 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(); } -- cgit v1.2.3