summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-01-09 12:00:29 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2018-01-09 12:00:29 +0100
commitc1c69be803d8249f160367db99a2688f89090beb (patch)
tree975359581f1e4c4ad7b910776289b69a5a1a8f3c /vespalib
parente079b5959782fb7f9993e05b81970010d9beb136 (diff)
Remove unnecessary if.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/stllike/hashtable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/stllike/hashtable.h b/vespalib/src/vespa/vespalib/stllike/hashtable.h
index 6acbfb82c0d..612c50ffb61 100644
--- a/vespalib/src/vespa/vespalib/stllike/hashtable.h
+++ b/vespalib/src/vespa/vespalib/stllike/hashtable.h
@@ -142,7 +142,7 @@ public:
typedef std::forward_iterator_tag iterator_category;
iterator(hashtable * hash) : _current(0), _hashTable(hash) {
- if ((_current < _hashTable->initializedSize()) && ! _hashTable->_nodes[_current].valid()) {
+ if (! _hashTable->_nodes[_current].valid()) {
advanceToNextValidHash();
}
}
@@ -186,7 +186,7 @@ public:
typedef std::forward_iterator_tag iterator_category;
const_iterator(const hashtable * hash) : _current(0), _hashTable(hash) {
- if ((_current < _hashTable->initializedSize()) && ! _hashTable->_nodes[_current].valid()) {
+ if (! _hashTable->_nodes[_current].valid()) {
advanceToNextValidHash();
}
}