Browse Source

[2442] simplified interface; txt-like ctor only needs to take lexer.

JINMEI Tatuya 12 years ago
parent
commit
9002ffc08e

+ 1 - 8
src/lib/dns/rdata/generic/detail/txt_like.h

@@ -16,8 +16,6 @@
 #define TXT_LIKE_H 1
 
 #include <dns/master_lexer.h>
-#include <dns/master_loader.h>
-#include <dns/master_loader_callbacks.h>
 #include <dns/rdata/generic/detail/char_string.h>
 
 #include <stdint.h>
@@ -102,17 +100,12 @@ public:
 
     /// \brief Constructor using the master lexer.
     ///
-    /// This implementation only uses the \c lexer parameters; others are
-    /// ignored.
-    ///
     /// \throw CharStringTooLong the parameter string length exceeds maximum.
     /// \throw InvalidRdataText the method cannot process the parameter data
     ///
     /// \param lexer A \c MasterLexer object parsing a master file for this
     /// RDATA.
-    TXTLikeImpl(MasterLexer& lexer, const Name*, MasterLoader::Options,
-                MasterLoaderCallbacks&)
-    {
+    TXTLikeImpl(MasterLexer& lexer) {
         buildFromTextHelper(lexer);
     }
 

+ 3 - 3
src/lib/dns/rdata/generic/spf_99.cc

@@ -76,9 +76,9 @@ SPF::SPF(InputBuffer& buffer, size_t rdata_len) :
 ///
 /// \param lexer A \c MasterLexer object parsing a master file for this
 /// RDATA.
-SPF::SPF(MasterLexer& lexer, const Name* origin,
-         MasterLoader::Options options, MasterLoaderCallbacks& callbacks) :
-    impl_(new SPFImpl(lexer, origin, options, callbacks))
+SPF::SPF(MasterLexer& lexer, const Name*, MasterLoader::Options,
+         MasterLoaderCallbacks&) :
+    impl_(new SPFImpl(lexer))
 {}
 
 /// \brief Constructor from string.

+ 3 - 3
src/lib/dns/rdata/generic/txt_16.cc

@@ -62,9 +62,9 @@ TXT::TXT(InputBuffer& buffer, size_t rdata_len) :
 ///
 /// \param lexer A \c MasterLexer object parsing a master file for this
 /// RDATA.
-TXT::TXT(MasterLexer& lexer, const Name* origin,
-         MasterLoader::Options options, MasterLoaderCallbacks& callbacks) :
-    impl_(new TXTImpl(lexer, origin, options, callbacks))
+TXT::TXT(MasterLexer& lexer, const Name*, MasterLoader::Options,
+         MasterLoaderCallbacks&) :
+    impl_(new TXTImpl(lexer))
 {}
 
 TXT::TXT(const std::string& txtstr) :