lib: remove unused includes
[babeltrace.git] / src / lib / object.h
index c0180dce76cda3dc43ae9aea7b74a30fd814c6a4..6531394a831484c13ce9a521e31a4e56bd89e61b 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef BABELTRACE_OBJECT_INTERNAL_H
 #define BABELTRACE_OBJECT_INTERNAL_H
 
-#include "common/macros.h"
 #include "common/assert.h"
 #include <stdbool.h>
 
@@ -317,10 +316,7 @@ void bt_object_get_ref(const void *ptr)
                return;
        }
 
-#ifdef BT_ASSERT_PRE_DEV
-       BT_ASSERT_PRE_DEV(obj->is_shared, "Object is not shared: %!+O", obj);
-#endif
-
+       BT_ASSERT_DBG(obj->is_shared);
        bt_object_get_ref_no_null_check(obj);
 }
 
@@ -333,12 +329,8 @@ void bt_object_put_ref(const void *ptr)
                return;
        }
 
-#ifdef BT_ASSERT_PRE_DEV
-       BT_ASSERT_PRE_DEV(obj->is_shared, "Object is not shared: %!+O", obj);
-       BT_ASSERT_PRE_DEV(bt_object_get_ref_count(obj) > 0,
-               "Decrementing a reference count set to 0: %!+O", ptr);
-#endif
-
+       BT_ASSERT_DBG(obj->is_shared);
+       BT_ASSERT_DBG(bt_object_get_ref_count(obj) > 0);
        bt_object_put_ref_no_null_check(obj);
 }
 
This page took 0.025661 seconds and 4 git commands to generate.