cpp-common/bt2: remove redundant assertions
[babeltrace.git] / src / cpp-common / bt2 / self-component-port.hpp
index 5b34abfd1d3fbf486c552bd632e960d0f4a0186e..2cd056afb1f4343dbe367d4f99c102b4de39f8a3 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "logging.hpp"
 
-#include "common/assert.h"
 #include "cpp-common/bt2c/c-string-view.hpp"
 
 #include "borrowed-object-iterator.hpp"
@@ -688,7 +687,6 @@ SelfSinkComponent::createMessageIterator(const InputPorts::Port port) const
 
     switch (status) {
     case BT_MESSAGE_ITERATOR_CREATE_FROM_SINK_COMPONENT_STATUS_OK:
-        BT_ASSERT(libMsgIterPtr);
         return MessageIterator::Shared::createWithoutRef(libMsgIterPtr);
     case BT_MESSAGE_ITERATOR_CREATE_FROM_SINK_COMPONENT_STATUS_MEMORY_ERROR:
         throw MemoryError {};
This page took 0.023308 seconds and 4 git commands to generate.