Browse Source

[2093] some more minor cleanups

Jelte Jansen 12 years ago
parent
commit
b58cbbe6f9
2 changed files with 2 additions and 4 deletions
  1. 0 3
      src/lib/datasrc/rbtree.h
  2. 2 1
      src/lib/datasrc/tests/rbtree_unittest.cc

+ 0 - 3
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

+ 2 - 1
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<int>::EXACTMATCH, rbtree.find(Name(domain_names[i]), &crbtnode));
+        EXPECT_EQ(RBTree<int>::EXACTMATCH, rbtree.find(Name(domain_names[i]),
+                  &crbtnode));
 
         // First make sure the names themselves are not absolute
         LabelSequence ls(crbtnode->getLabels());