Remove valgrind warning

This commit is contained in:
accelerated
2018-05-15 13:05:46 -04:00
parent 556f15a43f
commit ffc64b9a5a
2 changed files with 6 additions and 14 deletions

View File

@@ -206,13 +206,6 @@ public:
*/
ssize_t get_max_buffer_size() const;
/**
* \brief Get the number of unsent messages in the buffer
*
* \return The number of messages
*/
size_t get_buffer_size() const;
/**
* \brief Get the number of messages not yet acked by the broker
*
@@ -515,7 +508,6 @@ void BufferedProducer<BufferType>::produce_message(const MessageType& message) {
template <typename BufferType>
Configuration BufferedProducer<BufferType>::prepare_configuration(Configuration config) {
using std::placeholders::_2;
delivery_report_callback_ = config.get_delivery_report_callback();
auto callback = std::bind(&BufferedProducer<BufferType>::on_delivery_report, this, _2);
config.set_delivery_report_callback(std::move(callback));
return config;