Commit 9b71351b authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2935] Cleanup checkin callback from b10-auth

parent c46e1671
......@@ -393,7 +393,6 @@ AuthSrv::AuthSrv(isc::xfr::AbstractXfroutClient& xfrout_client,
dnss_(NULL)
{
impl_ = new AuthSrvImpl(xfrout_client, ddns_forwarder);
checkin_ = new ConfigChecker(this);
dns_lookup_ = new MessageLookup(this);
dns_answer_ = new MessageAnswer(this);
}
......@@ -405,7 +404,6 @@ AuthSrv::stop() {
AuthSrv::~AuthSrv() {
delete impl_;
delete checkin_;
delete dns_lookup_;
delete dns_answer_;
}
......
......@@ -190,9 +190,6 @@ public:
/// \brief Return pointer to the DNS Answer callback function
isc::asiodns::DNSAnswer* getDNSAnswerProvider() const { return (dns_answer_); }
/// \brief Return pointer to the Checkin callback function
isc::asiolink::SimpleCallback* getCheckinProvider() const { return (checkin_); }
/// \brief Return data source clients manager.
///
/// \throw None
......@@ -275,7 +272,6 @@ public:
private:
AuthSrvImpl* impl_;
isc::asiolink::SimpleCallback* checkin_;
isc::asiodns::DNSLookup* dns_lookup_;
isc::asiodns::DNSAnswer* dns_answer_;
isc::asiodns::DNSServiceBase* dnss_;
......
......@@ -173,12 +173,11 @@ main(int argc, char* argv[]) {
auth_server = auth_server_.get();
LOG_INFO(auth_logger, AUTH_SERVER_CREATED);
SimpleCallback* checkin = auth_server->getCheckinProvider();
IOService& io_service = auth_server->getIOService();
DNSLookup* lookup = auth_server->getDNSLookupProvider();
DNSAnswer* answer = auth_server->getDNSAnswerProvider();
DNSService dns_service(io_service, checkin, lookup, answer);
DNSService dns_service(io_service, lookup, answer);
auth_server->setDNSService(dns_service);
LOG_DEBUG(auth_logger, DBG_AUTH_START, AUTH_DNS_SERVICES_CREATED);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment