[Scummvm-cvs-logs] SF.net SVN: scummvm:[44258] scummvm/trunk/common/hashmap.h

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Tue Sep 22 14:39:07 CEST 2009


Revision: 44258
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44258&view=rev
Author:   wjpalenstijn
Date:     2009-09-22 12:39:07 +0000 (Tue, 22 Sep 2009)

Log Message:
-----------
Remove superfluous checks

Modified Paths:
--------------
    scummvm/trunk/common/hashmap.h

Modified: scummvm/trunk/common/hashmap.h
===================================================================
--- scummvm/trunk/common/hashmap.h	2009-09-22 12:33:20 UTC (rev 44257)
+++ scummvm/trunk/common/hashmap.h	2009-09-22 12:39:07 UTC (rev 44258)
@@ -255,14 +255,14 @@
 
 	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();
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list