From f0e4b693b3f444f3d492b484f228655c798c0179 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 8 Dec 2016 16:46:01 +0800 Subject: [PATCH] msg/async: remove unused member variable PosixServerSocketImpl::sa is not referenced anywhere, so remove it. Signed-off-by: Kefu Chai --- src/msg/async/PosixStack.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/msg/async/PosixStack.cc b/src/msg/async/PosixStack.cc index 21f0ad6fc970..7668ee7919f3 100644 --- a/src/msg/async/PosixStack.cc +++ b/src/msg/async/PosixStack.cc @@ -244,11 +244,10 @@ class PosixConnectedSocketImpl final : public ConnectedSocketImpl { class PosixServerSocketImpl : public ServerSocketImpl { NetHandler &handler; - entity_addr_t sa; int _fd; public: - explicit PosixServerSocketImpl(NetHandler &h, const entity_addr_t &sa, int f): handler(h), sa(sa), _fd(f) {} + explicit PosixServerSocketImpl(NetHandler &h, int f): handler(h), _fd(f) {} virtual int accept(ConnectedSocket *sock, const SocketOptions &opts, entity_addr_t *out, Worker *w) override; virtual void abort_accept() override { ::close(_fd); @@ -332,7 +331,7 @@ int PosixWorker::listen(entity_addr_t &sa, const SocketOptions &opt, *sock = ServerSocket( std::unique_ptr( - new PosixServerSocketImpl(net, sa, listen_sd))); + new PosixServerSocketImpl(net, listen_sd))); return 0; } -- 2.47.3