Clean a few more things

This commit is contained in:
louiz’
2016-12-04 16:15:21 +01:00
parent 3f53db79c0
commit 732f53d798
4 changed files with 4 additions and 11 deletions
-1
View File
@@ -8,7 +8,6 @@
#include <utils/timed_events.hpp> #include <utils/timed_events.hpp>
#include <algorithm> #include <algorithm>
#include <stdexcept>
DNSHandler DNSHandler::instance; DNSHandler DNSHandler::instance;
+2 -1
View File
@@ -20,8 +20,9 @@ class DNSSocketHandler;
class DNSHandler class DNSHandler
{ {
public: private:
DNSHandler(); DNSHandler();
public:
~DNSHandler() = default; ~DNSHandler() = default;
DNSHandler(const DNSHandler&) = delete; DNSHandler(const DNSHandler&) = delete;
DNSHandler(DNSHandler&&) = delete; DNSHandler(DNSHandler&&) = delete;
+2 -2
View File
@@ -204,8 +204,8 @@ protected:
/** /**
* Called when we detect a disconnection from the remote host. * Called when we detect a disconnection from the remote host.
*/ */
virtual void on_connection_close(const std::string& error) = 0; virtual void on_connection_close(const std::string&) {}
virtual void on_connection_failed(const std::string& error) = 0; virtual void on_connection_failed(const std::string&) {}
private: private:
#ifdef BOTAN_FOUND #ifdef BOTAN_FOUND
-7
View File
@@ -22,8 +22,6 @@ class IdentdSocket: public TCPSocketHandler
std::string generate_answer(const BiboumiComponent& biboumi, uint16_t local, uint16_t remote); std::string generate_answer(const BiboumiComponent& biboumi, uint16_t local, uint16_t remote);
void parse_in_buffer(const std::size_t size) override final; void parse_in_buffer(const std::size_t size) override final;
void on_connection_close(const std::string&) override final
{}
bool is_connected() const override final bool is_connected() const override final
{ {
@@ -35,10 +33,5 @@ class IdentdSocket: public TCPSocketHandler
} }
private: private:
void connect() override
{ assert(false); }
void on_connection_failed(const std::string&) override final
{ assert(false); }
IdentdServer& server; IdentdServer& server;
}; };