lib: remove unused parameter from set_integer_value
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 2 Nov 2023 19:43:49 +0000 (19:43 +0000)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 3 Nov 2023 18:56:03 +0000 (14:56 -0400)
Change-Id: I6334e430afce5170908f28a2d579806f87eff860
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11208
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/lib/value.c

index 5e26fddfb0ea5e2bdc7771c21fd3c176a646018b..c4e38f9b023f1b0ef65fece06179790191e47107 100644 (file)
@@ -829,7 +829,6 @@ int64_t bt_value_integer_signed_get(const struct bt_value *integer_obj)
 
 static inline
 void set_integer_value(struct bt_value *integer_obj,
-               enum bt_value_type expected_type __attribute__((unused)),
                uint64_t uval,
                const char *api_func)
 {
@@ -843,8 +842,7 @@ void bt_value_integer_unsigned_set(struct bt_value *integer_obj,
 {
        BT_ASSERT_PRE_VALUE_NON_NULL(integer_obj);
        BT_ASSERT_PRE_VALUE_IS_UNSIGNED_INT(integer_obj);
-       set_integer_value(integer_obj, BT_VALUE_TYPE_UNSIGNED_INTEGER, val,
-               __func__);
+       set_integer_value(integer_obj, val, __func__);
        BT_LOGT("Set unsigned integer value's raw value: "
                "value-addr=%p, value=%" PRIu64, integer_obj, val);
 }
@@ -855,8 +853,7 @@ void bt_value_integer_signed_set(struct bt_value *integer_obj,
 {
        BT_ASSERT_PRE_VALUE_NON_NULL(integer_obj);
        BT_ASSERT_PRE_VALUE_IS_SIGNED_INT(integer_obj);
-       set_integer_value(integer_obj, BT_VALUE_TYPE_SIGNED_INTEGER,
-               (uint64_t) val, __func__);
+       set_integer_value(integer_obj, (uint64_t) val, __func__);
        BT_LOGT("Set signed integer value's raw value: "
                "value-addr=%p, value=%" PRId64, integer_obj, val);
 }
This page took 0.026681 seconds and 4 git commands to generate.