table: Remove useless boolean in NameTree::const_iterator::operator++
Refs: #2808
Change-Id: Ief819d46a4c44eede5e1fecb951fb3e6002ad409
diff --git a/daemon/table/name-tree.cpp b/daemon/table/name-tree.cpp
index 4e2182b..3ef1893 100644
--- a/daemon/table/name-tree.cpp
+++ b/daemon/table/name-tree.cpp
@@ -614,14 +614,12 @@
if (m_type == FULL_ENUMERATE_TYPE) // fullEnumerate
{
- bool isFound = false;
// process the entries in the same bucket first
while (m_entry->m_node->m_next != 0)
{
m_entry = m_entry->m_node->m_next->m_entry;
if ((*m_entrySelector)(*m_entry))
{
- isFound = true;
return *this;
}
}
@@ -639,14 +637,13 @@
m_entry = node->m_entry;
if ((*m_entrySelector)(*m_entry))
{
- isFound = true;
return *this;
}
node = node->m_next;
}
}
- BOOST_VERIFY(isFound == false);
- // Reach to the end()
+
+ // Reach the end()
m_entry = m_nameTree->m_end;
return *this;
}