]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2935] Remove unused classes
authorMukund Sivaraman <muks@isc.org>
Wed, 31 Jul 2013 07:33:00 +0000 (13:03 +0530)
committerMukund Sivaraman <muks@isc.org>
Wed, 31 Jul 2013 07:34:19 +0000 (13:04 +0530)
This functionality seems to be handled inside CC session itself
now. ModuleCCSession::start() adds startCheck() and handles
checkCommand() there.

src/bin/auth/auth_srv.cc
src/bin/resolver/resolver.cc

index 682886ec6a05951b54ef027a7836179d4def5c2a..f607d1055ce4fd517ffeffc68c3530b33e2400b9 100644 (file)
@@ -372,22 +372,6 @@ public:
     {}
 };
 
-// This is a derived class of \c SimpleCallback, to serve
-// as a callback in the asiolink module.  It checks for queued
-// configuration messages, and executes them if found.
-class ConfigChecker : public SimpleCallback {
-public:
-    ConfigChecker(AuthSrv* srv) : server_(srv) {}
-    virtual void operator()(const IOMessage&) const {
-        ModuleCCSession* cfg_session = server_->getConfigSession();
-        if (cfg_session != NULL && cfg_session->hasQueuedMsgs()) {
-            cfg_session->checkCommand();
-        }
-    }
-private:
-    AuthSrv* server_;
-};
-
 AuthSrv::AuthSrv(isc::xfr::AbstractXfroutClient& xfrout_client,
                  isc::util::io::BaseSocketSessionForwarder& ddns_forwarder) :
     dnss_(NULL)
index 46f9e61e9820373ceed8535bd7fa9c43c7077362..2ac638f5b3ed680b64eb669b1a5a77729fada961 100644 (file)
@@ -338,21 +338,6 @@ public:
     }
 };
 
-// This is a derived class of \c SimpleCallback, to serve
-// as a callback in the asiolink module.  It checks for queued
-// configuration messages, and executes them if found.
-class ConfigCheck : public SimpleCallback {
-public:
-    ConfigCheck(Resolver* srv) : server_(srv) {}
-    virtual void operator()(const IOMessage&) const {
-        if (server_->getConfigSession()->hasQueuedMsgs()) {
-            server_->getConfigSession()->checkCommand();
-        }
-    }
-private:
-    Resolver* server_;
-};
-
 Resolver::Resolver() :
     impl_(new ResolverImpl()),
     dnss_(NULL),