cpp-common/bt2: remove redundant assertions
[babeltrace.git] / src / cpp-common / bt2 / shared-object.hpp
index 406172d80577b929ea0a8745e6544425fd6a7791..124cff48b49086ce16ede66647eecfdfa01a694b 100644 (file)
@@ -9,8 +9,6 @@
 
 #include <utility>
 
-#include "common/assert.h"
-
 #include "optional-borrowed-object.hpp"
 
 namespace bt2 {
@@ -235,13 +233,11 @@ public:
 
     ObjT operator*() const noexcept
     {
-        BT_ASSERT_DBG(_mObj);
         return *_mObj;
     }
 
     BorrowedObjectProxy<ObjT> operator->() const noexcept
     {
-        BT_ASSERT_DBG(_mObj);
         return _mObj.operator->();
     }
 
@@ -270,8 +266,6 @@ public:
      */
     ObjT release() noexcept
     {
-        BT_ASSERT_DBG(_mObj);
-
         const auto obj = *_mObj;
 
         this->_reset();
This page took 0.02912 seconds and 4 git commands to generate.