sink.text.details: remove unused parameter from configure_bool_opt
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 2 Nov 2023 19:52:55 +0000 (19:52 +0000)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 3 Nov 2023 18:56:17 +0000 (14:56 -0400)
Change-Id: I71601439e92bdd678b45731f7f08a7c4d59f66eb
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11216
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/text/details/details.c

index 550ae9d925fb69c67e943bc3b7ed5caf8fa8c36c..0b94653eb0c36b8f6521bc96c59c0e5d2dc34a6f 100644 (file)
@@ -198,9 +198,7 @@ void details_finalize(bt_self_component_sink *comp)
 }
 
 static
-void configure_bool_opt(
-               struct details_comp *details_comp __attribute__((unused)),
-               const bt_value *params, const char *param_name,
+void configure_bool_opt(const bt_value *params, const char *param_name,
                bool default_value, bool *opt_value)
 {
        const bt_value *value;
@@ -271,39 +269,36 @@ bt_component_class_initialize_method_status configure_details_comp(
        }
 
        /* With metadata objects? */
-       configure_bool_opt(details_comp, params, WITH_METADATA_PARAM_NAME,
-               true, &details_comp->cfg.with_meta);
+       configure_bool_opt(params, WITH_METADATA_PARAM_NAME, true,
+               &details_comp->cfg.with_meta);
 
        /* With data objects? */
-       configure_bool_opt(details_comp, params, WITH_DATA_PARAM_NAME,
-               true, &details_comp->cfg.with_data);
+       configure_bool_opt(params, WITH_DATA_PARAM_NAME, true,
+               &details_comp->cfg.with_data);
 
        /* Compact? */
-       configure_bool_opt(details_comp, params, COMPACT_PARAM_NAME,
-               false, &details_comp->cfg.compact);
+       configure_bool_opt(params, COMPACT_PARAM_NAME, false,
+               &details_comp->cfg.compact);
 
        /* With time? */
-       configure_bool_opt(details_comp, params, WITH_TIME_PARAM_NAME,
-               true, &details_comp->cfg.with_time);
+       configure_bool_opt(params, WITH_TIME_PARAM_NAME, true,
+               &details_comp->cfg.with_time);
 
        /* With trace name? */
-       configure_bool_opt(details_comp, params,
-               WITH_TRACE_NAME_PARAM_NAME,
-               true, &details_comp->cfg.with_trace_name);
+       configure_bool_opt(params, WITH_TRACE_NAME_PARAM_NAME, true,
+               &details_comp->cfg.with_trace_name);
 
        /* With stream class name? */
-       configure_bool_opt(details_comp, params,
-               WITH_STREAM_CLASS_NAME_PARAM_NAME,
-               true, &details_comp->cfg.with_stream_class_name);
+       configure_bool_opt(params, WITH_STREAM_CLASS_NAME_PARAM_NAME, true,
+               &details_comp->cfg.with_stream_class_name);
 
        /* With stream name? */
-       configure_bool_opt(details_comp, params,
-               WITH_STREAM_NAME_PARAM_NAME,
-               true, &details_comp->cfg.with_stream_name);
+       configure_bool_opt(params, WITH_STREAM_NAME_PARAM_NAME, true,
+               &details_comp->cfg.with_stream_name);
 
        /* With UUID? */
-       configure_bool_opt(details_comp, params,
-               WITH_UUID_PARAM_NAME, true, &details_comp->cfg.with_uuid);
+       configure_bool_opt(params, WITH_UUID_PARAM_NAME, true,
+               &details_comp->cfg.with_uuid);
 
        status = BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_OK;
        goto end;
This page took 0.029025 seconds and 4 git commands to generate.