]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/async: remove unused member variable
authorKefu Chai <kchai@redhat.com>
Thu, 8 Dec 2016 08:46:01 +0000 (16:46 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 8 Dec 2016 08:46:31 +0000 (16:46 +0800)
PosixServerSocketImpl::sa is not referenced anywhere, so remove it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/msg/async/PosixStack.cc

index 21f0ad6fc970596041610899509eb44e24a323df..7668ee7919f3637827d0e799ccd16d2e112dfa55 100644 (file)
@@ -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<PosixServerSocketImpl>(
-              new PosixServerSocketImpl(net, sa, listen_sd)));
+              new PosixServerSocketImpl(net, listen_sd)));
   return 0;
 }