diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2020-03-09 13:25:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-03-09 13:25:28 +0000 |
commit | 01d76a603fba7db5cfb83a1fbc3b369f2e4a4823 (patch) | |
tree | 486f541ca2ca90ed1d117dad1920f23725eed38e /libtransport/src/core/content_object.cc | |
parent | 0f7b6da4aeeb6ed9baffb47d72aa176556145501 (diff) | |
parent | afe807c61372fe2481e73af63c8382af1e1d3011 (diff) |
Merge "[HICN-540] Optimizations for libhicntransport"
Diffstat (limited to 'libtransport/src/core/content_object.cc')
-rw-r--r-- | libtransport/src/core/content_object.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libtransport/src/core/content_object.cc b/libtransport/src/core/content_object.cc index 6cbcdb29e..f5cccf404 100644 --- a/libtransport/src/core/content_object.cc +++ b/libtransport/src/core/content_object.cc @@ -86,15 +86,6 @@ ContentObject::ContentObject(ContentObject &&other) : Packet(std::move(other)) { ContentObject::~ContentObject() {} -void ContentObject::replace(MemBufPtr &&buffer) { - Packet::replace(std::move(buffer)); - - if (hicn_data_get_name(format_, packet_start_, name_.getStructReference()) < - 0) { - throw errors::RuntimeException("Error getting name from content object."); - } -} - const Name &ContentObject::getName() const { if (!name_) { if (hicn_data_get_name(format_, packet_start_, |