Commit ecd7dbe0 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[1599] Remove some cruft

These methods are not used in the code at all. And they seem like
useless anyway.
parent f472a687
......@@ -88,22 +88,6 @@ public:
/// to return.
virtual void resume(const bool done) { self_->resume(done); }
/// \brief Indicate whether the server is able to send an answer
/// to a query.
///
/// This is presently used only for testing purposes.
virtual bool hasAnswer() { return (self_->hasAnswer()); }
/// \brief Returns the current value of the 'coroutine' object
///
/// This is a temporary method, intended to be used for debugging
/// purposes during development and removed later. It allows
/// callers from outside the coroutine object to retrieve information
/// about its current state.
///
/// \return The value of the 'coroutine' object
virtual int value() { return (self_->value()); }
/// \brief Returns a pointer to a clone of this DNSServer object.
///
/// When a \c DNSServer object is copied or assigned, the result will
......
......@@ -62,14 +62,12 @@ public:
void asyncLookup();
void stop();
void resume(const bool done);
bool hasAnswer() { return (done_); }
int value() { return (get_value()); }
DNSServer* clone() {
TCPServer* s = new TCPServer(*this);
return (s);
}
private:
enum { MAX_LENGTH = 65535 };
static const size_t TCP_MESSAGE_LENGTHSIZE = 2;
......
......@@ -343,10 +343,5 @@ UDPServer::resume(const bool done) {
data_->io_.post(*this);
}
bool
UDPServer::hasAnswer() {
return (data_->done_);
}
} // namespace asiodns
} // namespace isc
......@@ -83,16 +83,6 @@ public:
/// we have an answer
void resume(const bool done);
/// \brief Check if we have an answer
///
/// \return true if we have an answer
bool hasAnswer();
/// \brief Returns the coroutine state value
///
/// \return the coroutine state value
int value() { return (get_value()); }
/// \brief Clones the object
///
/// \return a newly allocated copy of this object
......
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