Commit 52691215 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

trivial cleanups: removed some unnecessary or meaningless 'inline' declarations:

 - member functions with a definition will automatically be inlined
 - virtual functions cannot be inlined anyway
believing trivial, skip review.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@4009 e5f2f494-b856-4b98-b285-d166d9295462
parent c06879a0
......@@ -300,13 +300,13 @@ public:
///
/// \param done If true, this signals the system there is an answer
/// to return.
virtual inline void resume(const bool done) { self_->resume(done); }
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 inline bool hasAnswer() { return (self_->hasAnswer()); }
virtual bool hasAnswer() { return (self_->hasAnswer()); }
/// \brief Returns the current value of the 'coroutine' object
///
......@@ -316,7 +316,7 @@ public:
/// about its current state.
///
/// \return The value of the 'coroutine' object
virtual inline int value() { return (self_->value()); }
virtual int value() { return (self_->value()); }
/// \brief Returns a pointer to a clone of this DNSServer object.
///
......@@ -326,7 +326,7 @@ public:
/// that the underlying object is also correctly copied.
///
/// \return A deep copy of this DNSServer object
virtual inline DNSServer* clone() { return (self_->clone()); }
virtual DNSServer* clone() { return (self_->clone()); }
//@}
protected:
......@@ -349,7 +349,7 @@ protected:
class AsyncLookup {
public:
AsyncLookup(T& caller) : caller_(caller) {}
inline void operator()() { caller_.asyncLookup(); }
void operator()() { caller_.asyncLookup(); }
private:
T caller_;
};
......@@ -361,7 +361,7 @@ protected:
/// the details of the query and a pointer back to the current
/// server object. It is called asynchronously via the AsyncLookup
/// handler class.
virtual inline void asyncLookup() { self_->asyncLookup(); }
virtual void asyncLookup() { self_->asyncLookup(); }
private:
DNSServer* self_;
......
......@@ -79,25 +79,25 @@ public:
~TCPEndpoint() { delete asio_endpoint_placeholder_; }
//@}
inline IOAddress getAddress() const {
IOAddress getAddress() const {
return (asio_endpoint_.address());
}
inline uint16_t getPort() const {
uint16_t getPort() const {
return (asio_endpoint_.port());
}
inline short getProtocol() const {
short getProtocol() const {
return (asio_endpoint_.protocol().protocol());
}
inline short getFamily() const {
short getFamily() const {
return (asio_endpoint_.protocol().family());
}
// This is not part of the exosed IOEndpoint API but allows
// direct access to the ASIO implementation of the endpoint
inline const asio::ip::tcp::endpoint& getASIOEndpoint() const {
const asio::ip::tcp::endpoint& getASIOEndpoint() const {
return (asio_endpoint_);
}
......@@ -123,8 +123,8 @@ public:
/// \param socket The ASIO representation of the TCP socket.
TCPSocket(asio::ip::tcp::socket& socket) : socket_(socket) {}
inline int getNative() const { return (socket_.native()); }
inline int getProtocol() const { return (IPPROTO_TCP); }
int getNative() const { return (socket_.native()); }
int getProtocol() const { return (IPPROTO_TCP); }
private:
asio::ip::tcp::socket& socket_;
......
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