build: Finalizing waf building system (removing legacy code)
Change-Id: Ie7e7cc84e19551e3dd5dd0405b14f289ea54e7cd
diff --git a/src/transport/unix-transport.cpp b/src/transport/unix-transport.cpp
index 954b12c..5d26e15 100644
--- a/src/transport/unix-transport.cpp
+++ b/src/transport/unix-transport.cpp
@@ -10,7 +10,6 @@
#include <ndn-cpp-dev/face.hpp>
#include <ndn-cpp-dev/transport/unix-transport.hpp>
-#include "../c/util/ndn_memory.h"
#include <boost/asio.hpp>
#if NDN_CPP_HAVE_CXX11
@@ -148,7 +147,8 @@
if (partialDataSize_ > 0)
{
size_t newDataSize = std::min(bytes_recvd, MAX_LENGTH-partialDataSize_);
- ndn_memcpy(partialData_ + partialDataSize_, inputBuffer_, newDataSize);
+ std::copy(inputBuffer_, inputBuffer_ + newDataSize, partialData_ + partialDataSize_);
+
partialDataSize_ += newDataSize;
size_t offset = 0;
@@ -163,7 +163,7 @@
offset = 0;
partialDataSize_ = bytes_recvd - newDataSize;
- ndn_memcpy(partialData_, inputBuffer_ + newDataSize, partialDataSize_);
+ std::copy(inputBuffer_ + newDataSize, inputBuffer_ + newDataSize + partialDataSize_, partialData_);
processAll(partialData_, offset, partialDataSize_);
@@ -181,7 +181,7 @@
if (offset > 0)
{
partialDataSize_ -= offset;
- ndn_memcpy(partialData_, partialData_ + offset, partialDataSize_);
+ std::copy(partialData_ + offset, partialData_ + offset + partialDataSize_, partialData_);
}
else if (offset == 0 && partialDataSize_ == MAX_LENGTH)
{
@@ -204,7 +204,7 @@
if (offset > 0)
{
partialDataSize_ = bytes_recvd - offset;
- ndn_memcpy(partialData_, inputBuffer_ + offset, partialDataSize_);
+ std::copy(inputBuffer_ + offset, inputBuffer_ + offset + partialDataSize_, partialData_);
}
}
}