AsyncMessenger: remove unused variables

* remove AsyncMessenger::listen_sd
* remove `ee` in KqueueDriver::del_event()

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-02-07 01:54:12 +08:00
parent c45854a806
commit c21de4d08a
3 changed files with 1 additions and 3 deletions

View File

@ -377,7 +377,7 @@ AsyncMessenger::AsyncMessenger(CephContext *cct, entity_name_t name,
: SimplePolicyMessenger(cct, name,mname, _nonce),
processor(this, cct, _nonce),
lock("AsyncMessenger::lock"),
nonce(_nonce), need_addr(true), listen_sd(-1), did_bind(false),
nonce(_nonce), need_addr(true), did_bind(false),
global_seq(0), deleted_lock("AsyncMessenger::deleted_lock"),
cluster_protocol(0), stopped(true)
{

View File

@ -358,7 +358,6 @@ private:
* the only writers.
*/
int listen_sd;
/**
* false; set to true if the AsyncMessenger bound to a specific address;
* and set false again by Accepter::stop().

View File

@ -69,7 +69,6 @@ int KqueueDriver::del_event(int fd, int cur_mask, int delmask)
{
ldout(cct, 20) << __func__ << " del event fd=" << fd << " cur mask=" << cur_mask
<< " delmask=" << delmask << dendl;
struct kevent ee;
struct kevent ke;
int filter = 0;
int r = 0;