1
0
Fork 0

removed unused private variable (fixes compiler warning)

This commit is contained in:
Jan Steemann 2013-06-28 15:44:59 +02:00
parent d89262dc6a
commit 5ba876978b
4 changed files with 5 additions and 7 deletions

View File

@ -74,8 +74,8 @@ namespace triagens {
/// @brief listen to given port
////////////////////////////////////////////////////////////////////////////////
GeneralListenTask (S* server, Endpoint* endpoint, bool reuseAddress)
: Task("GeneralListenTask"), ListenTask(endpoint, reuseAddress), server(server) {
GeneralListenTask (S* server, Endpoint* endpoint)
: Task("GeneralListenTask"), ListenTask(endpoint), server(server) {
}
////////////////////////////////////////////////////////////////////////////////

View File

@ -415,7 +415,7 @@ namespace triagens {
////////////////////////////////////////////////////////////////////////////////
bool openEndpoint (Endpoint* endpoint) {
ListenTask* task = new GeneralListenTask<S> (dynamic_cast<S*> (this), endpoint, true);
ListenTask* task = new GeneralListenTask<S> (dynamic_cast<S*> (this), endpoint);
// ...................................................................
// For some reason we have failed in our endeavour to bind to the socket -

View File

@ -61,10 +61,9 @@ using namespace triagens::rest;
// constructors and destructors
// -----------------------------------------------------------------------------
ListenTask::ListenTask (Endpoint* endpoint, bool reuseAddress)
ListenTask::ListenTask (Endpoint* endpoint)
: Task("ListenTask"),
readWatcher(0),
reuseAddress(reuseAddress),
_endpoint(endpoint),
acceptFailures(0) {
_listenSocket.fileHandle = 0;

View File

@ -68,7 +68,7 @@ namespace triagens {
/// @brief listen to given endpoint
////////////////////////////////////////////////////////////////////////////////
ListenTask (Endpoint*, bool);
ListenTask (Endpoint*);
public:
@ -130,7 +130,6 @@ namespace triagens {
bool bindSocket ();
private:
bool reuseAddress;
Endpoint* _endpoint;
TRI_socket_t _listenSocket;