transport: Remove unused member elementListener_.
diff --git a/src/transport/tcp-transport.cpp b/src/transport/tcp-transport.cpp
index ea32c4d..6c5dc85 100644
--- a/src/transport/tcp-transport.cpp
+++ b/src/transport/tcp-transport.cpp
@@ -22,7 +22,7 @@
}
TcpTransport::TcpTransport()
- : elementListener_(0), isConnected_(false), transport_(new struct ndn_TcpTransport), elementReader_(new struct ndn_BinaryXmlElementReader)
+ : isConnected_(false), transport_(new struct ndn_TcpTransport), elementReader_(new struct ndn_BinaryXmlElementReader)
{
ndn_TcpTransport_initialize(transport_.get());
elementReader_->partialData.array = 0;
@@ -44,7 +44,6 @@
(elementReader_.get(), &elementListener, (uint8_t *)malloc(initialLength), initialLength, ndn_realloc);
isConnected_ = true;
- elementListener_ = &elementListener;
}
void