From: Jelte Jansen Date: Mon, 30 Jul 2012 15:16:47 +0000 (+0200) Subject: [2093] some more minor cleanups X-Git-Tag: trac2351_base~137^2~3^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b58cbbe6f9d7edb3faf27cfc841c0c8055edec8f;p=thirdparty%2Fkea.git [2093] some more minor cleanups --- diff --git a/src/lib/datasrc/rbtree.h b/src/lib/datasrc/rbtree.h index be380104d5..7ff15de9f0 100644 --- a/src/lib/datasrc/rbtree.h +++ b/src/lib/datasrc/rbtree.h @@ -229,9 +229,6 @@ public: /// It takes the (partial) name of the node itself, and extends it /// with all upper nodes. /// - /// The label sequence that is returned should therefore always be - /// absolute. - /// /// \note Care must be taken with the buffer that is used here; this /// method overwrites its data, so it should not be associated with /// any other LabelSequence during the lifetime of the LabelSequence diff --git a/src/lib/datasrc/tests/rbtree_unittest.cc b/src/lib/datasrc/tests/rbtree_unittest.cc index 8236489d08..f7b32a172a 100644 --- a/src/lib/datasrc/tests/rbtree_unittest.cc +++ b/src/lib/datasrc/tests/rbtree_unittest.cc @@ -1002,7 +1002,8 @@ TEST_F(RBTreeTest, getAbsoluteLabels) { int name_count = sizeof(domain_names) / sizeof(domain_names[0]); uint8_t buf[LabelSequence::MAX_SERIALIZED_LENGTH]; for (int i = 0; i < name_count; ++i) { - EXPECT_EQ(RBTree::EXACTMATCH, rbtree.find(Name(domain_names[i]), &crbtnode)); + EXPECT_EQ(RBTree::EXACTMATCH, rbtree.find(Name(domain_names[i]), + &crbtnode)); // First make sure the names themselves are not absolute LabelSequence ls(crbtnode->getLabels());