cpp-common/bt2: remove redundant assertions
[babeltrace.git] / src / cpp-common / bt2 / self-message-iterator.hpp
index 4460fe27e79c422cc90f9f222147a4c48d96ae2b..e52f08e6727951f398bfa01362140dbab6f518c2 100644 (file)
@@ -9,7 +9,6 @@
 
 #include <babeltrace2/babeltrace.h>
 
-#include "common/assert.h"
 #include "common/common.h"
 
 #include "borrowed-object.hpp"
@@ -34,7 +33,6 @@ public:
 
         switch (status) {
         case BT_MESSAGE_ITERATOR_CREATE_FROM_MESSAGE_ITERATOR_STATUS_OK:
-            BT_ASSERT(libMsgIterPtr);
             return MessageIterator::Shared::createWithoutRef(libMsgIterPtr);
         case BT_MESSAGE_ITERATOR_CREATE_FROM_MESSAGE_ITERATOR_STATUS_MEMORY_ERROR:
             throw MemoryError {};
This page took 0.023331 seconds and 4 git commands to generate.