mirror of https://gitee.com/bigwinds/arangodb
removed unused private variable (fixes compiler warning)
This commit is contained in:
parent
d89262dc6a
commit
5ba876978b
|
@ -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) {
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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 -
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue