encoding: delete deprecated Block::fromBuffer and block helpers
These deprecated APIs are deleted:
Block::fromBuffer overloads with output parameter
ndn::encoding::prependBlock
ndn::encoding::prependByteArrayBlock
ndn::encoding::nonNegativeIntegerBlock
ndn::encoding::prependBooleanBlock
ndn::encoding::booleanBlock
ndn::encoding::dataBlock
ndn::encoding::nestedBlock
refs #2950, #2636
Change-Id: Ic7a129f340b75b4d97620bbf8f63d3ff2e9ddb03
diff --git a/src/mgmt/control-response.cpp b/src/mgmt/control-response.cpp
index b85b2d4..a0c74c2 100644
--- a/src/mgmt/control-response.cpp
+++ b/src/mgmt/control-response.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2013-2015 Regents of the University of California.
+ * Copyright (c) 2013-2016 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -55,9 +55,9 @@
return m_wire;
m_wire = Block(tlv::nfd::ControlResponse);
- m_wire.push_back(nonNegativeIntegerBlock(tlv::nfd::StatusCode, m_code));
+ m_wire.push_back(makeNonNegativeIntegerBlock(tlv::nfd::StatusCode, m_code));
- m_wire.push_back(dataBlock(tlv::nfd::StatusText, m_text.c_str(), m_text.size()));
+ m_wire.push_back(makeBinaryBlock(tlv::nfd::StatusText, m_text.c_str(), m_text.size()));
if (m_body.hasWire()) {
m_wire.push_back(m_body);