`BT_ASSERT_PRE_FUNC` is defined to nothing, so remove it.
This should have been done in
bdb288b3e94e412a33c8647d44f6cfac66ca0665.
`BT_ASSERT_PRE_DEV_FUNC` is defined in non-developer mode to mark the
function as unused.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I382f87693a6079eeb13f537e2669402995c58f41
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1721
* static inline bool check_complex_precond(...)
* {
* ...
* static inline bool check_complex_precond(...)
* {
* ...
"Index is out of bounds: index=%" PRIu64 ", " \
"count=%" PRIu64, (uint64_t) (_index), (uint64_t) (_length))
"Index is out of bounds: index=%" PRIu64 ", " \
"count=%" PRIu64, (uint64_t) (_index), (uint64_t) (_length))
-/*
- * Marks a function as being only used within a BT_ASSERT_PRE() context.
- */
-#define BT_ASSERT_PRE_FUNC
-
#ifdef BT_DEV_MODE
/* Developer mode version of BT_ASSERT_PRE_MSG(). */
# define BT_ASSERT_PRE_DEV_MSG(_fmt, ...) \
#ifdef BT_DEV_MODE
/* Developer mode version of BT_ASSERT_PRE_MSG(). */
# define BT_ASSERT_PRE_DEV_MSG(_fmt, ...) \
# define BT_ASSERT_PRE_DEV_VALID_INDEX(_index, _length) \
BT_ASSERT_PRE_VALID_INDEX((_index), (_length))
# define BT_ASSERT_PRE_DEV_VALID_INDEX(_index, _length) \
BT_ASSERT_PRE_VALID_INDEX((_index), (_length))
-/* Developer mode version of `BT_ASSERT_PRE_FUNC`. */
+/*
+ * Marks a function as being only used within a BT_ASSERT_PRE_DEV()
+ * context.
+ */
# define BT_ASSERT_PRE_DEV_FUNC
#else
# define BT_ASSERT_PRE_DEV_MSG(_fmt, ...)
# define BT_ASSERT_PRE_DEV_FUNC
#else
# define BT_ASSERT_PRE_DEV_MSG(_fmt, ...)
g_ptr_array_remove(graph->connections, connection);
}
g_ptr_array_remove(graph->connections, connection);
}
static inline
bool component_name_exists(struct bt_graph *graph, const char *name)
{
static inline
bool component_name_exists(struct bt_graph *graph, const char *name)
{
static inline bool event_class_has_trace(struct bt_event_class *event_class)
{
struct bt_stream_class *stream_class;
static inline bool event_class_has_trace(struct bt_event_class *event_class)
{
struct bt_stream_class *stream_class;
bt_event_destroy(event);
}
bt_event_destroy(event);
}
static
bool event_class_id_is_unique(const struct bt_stream_class *stream_class,
uint64_t id)
static
bool event_class_id_is_unique(const struct bt_stream_class *stream_class,
uint64_t id)
static
bool size_is_valid_for_enumeration_field_class(struct bt_field_class *fc,
uint64_t size)
static
bool size_is_valid_for_enumeration_field_class(struct bt_field_class *fc,
uint64_t size)
bt_field_wrapper_destroy((void *) field_wrapper);
}
bt_field_wrapper_destroy((void *) field_wrapper);
}
static
bool stream_class_id_is_unique(const struct bt_trace_class *tc, uint64_t id)
{
static
bool stream_class_id_is_unique(const struct bt_trace_class *tc, uint64_t id)
{
bt_packet_destroy(packet);
}
bt_packet_destroy(packet);
}
static inline
bool stream_id_is_unique(struct bt_trace *trace,
struct bt_stream_class *stream_class, uint64_t id)
static inline
bool stream_id_is_unique(struct bt_trace *trace,
struct bt_stream_class *stream_class, uint64_t id)
return BT_FUNC_STATUS_OK;
}
return BT_FUNC_STATUS_OK;
}
static
bool has_listener_id(const struct bt_trace_class *tc, uint64_t listener_id)
{
static
bool has_listener_id(const struct bt_trace_class *tc, uint64_t listener_id)
{
return BT_FUNC_STATUS_OK;
}
return BT_FUNC_STATUS_OK;
}
static
bool has_listener_id(const struct bt_trace *trace, uint64_t listener_id)
{
static
bool has_listener_id(const struct bt_trace *trace, uint64_t listener_id)
{