]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2053] Remove the dns::LabelSequence::getName() method
authorMukund Sivaraman <muks@isc.org>
Fri, 29 Jun 2012 00:08:08 +0000 (05:38 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 29 Jun 2012 00:08:12 +0000 (05:38 +0530)
src/lib/dns/labelsequence.h
src/lib/dns/tests/labelsequence_unittest.cc

index f5d801bd1748cd4d282538dd48d94b191108bf10..9928a10e2f54143ec4b1ebf8173001cb70e0f342 100644 (file)
@@ -139,17 +139,6 @@ public:
     /// \return a string representation of the <code>LabelSequence</code>.
     std::string toText() const;
 
-    /// \brief Returns the original Name object associated with this
-    ///        LabelSequence
-    ///
-    /// While the Name should still be in scope during the lifetime of
-    /// the LabelSequence, it can still be useful to have access to it,
-    /// for instance in helper functions that are only passed the
-    /// LabelSequence itself.
-    ///
-    /// \return Reference to the original Name object
-    const Name& getName() const { return (name_); }
-
     /// \brief Calculate a simple hash for the label sequence.
     ///
     /// This method calculates a hash value for the label sequence as binary
index 6eb5dff88716d78222f4e6e26d93ab453ce837c7..be26246b246c5368fda07a4be5f1a7819ccd5141 100644 (file)
@@ -149,14 +149,14 @@ getDataCheck(const uint8_t* expected_data, size_t expected_len,
     size_t len;
     const uint8_t* data = ls.getData(&len);
     ASSERT_EQ(expected_len, len) << "Expected data: " << expected_data <<
-                                    " name: " << ls.getName().toText();
+                                    ", label sequence: " << ls;
     EXPECT_EQ(expected_len, ls.getDataLength()) <<
         "Expected data: " << expected_data <<
-        " name: " << ls.getName().toText();
+        ", label sequence: " << ls;
     for (size_t i = 0; i < len; ++i) {
         EXPECT_EQ(expected_data[i], data[i]) <<
           "Difference at pos " << i << ": Expected data: " << expected_data <<
-          " name: " << ls.getName().toText();;
+          ", label sequence: " << ls;
     }
 }