src.ctf.fs: remove unused parameter from ctf_fs_component_create
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 2 Nov 2023 19:47:53 +0000 (19:47 +0000)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 3 Nov 2023 18:56:03 +0000 (14:56 -0400)
Change-Id: I32ed8d398a1292a48ebccb27578dee9e20d3b4f3
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11211
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/ctf/fs-src/fs.cpp
src/plugins/ctf/fs-src/fs.hpp
src/plugins/ctf/fs-src/query.cpp

index 0118efbdaec4ecdd0b7e56618269f294faf07861..4f788373f9be5cedefdfedd2bc6d62847df4c93e 100644 (file)
@@ -326,8 +326,7 @@ static void ctf_fs_trace_destroy_notifier(void *data)
     ctf_fs_trace_destroy(trace);
 }
 
-struct ctf_fs_component *ctf_fs_component_create(bt_logging_level log_level,
-                                                 bt_self_component *)
+struct ctf_fs_component *ctf_fs_component_create(bt_logging_level log_level)
 {
     struct ctf_fs_component *ctf_fs;
 
@@ -402,8 +401,7 @@ gchar *ctf_fs_make_port_name(struct ctf_fs_ds_file_group *ds_file_group)
     return g_string_free(name, FALSE);
 }
 
-static int create_one_port_for_trace(struct ctf_fs_component *ctf_fs,
-                                     struct ctf_fs_trace *,
+static int create_one_port_for_trace(struct ctf_fs_component *ctf_fs, struct ctf_fs_trace *,
                                      struct ctf_fs_ds_file_group *ds_file_group,
                                      bt_self_component_source *self_comp_src)
 {
@@ -2258,7 +2256,7 @@ static struct ctf_fs_component *ctf_fs_create(const bt_value *params,
     bt_self_component *self_comp = bt_self_component_source_as_self_component(self_comp_src);
 
     ctf_fs = ctf_fs_component_create(
-        bt_component_get_logging_level(bt_self_component_as_component(self_comp)), self_comp);
+        bt_component_get_logging_level(bt_self_component_as_component(self_comp)));
     if (!ctf_fs) {
         goto error;
     }
@@ -2294,9 +2292,9 @@ end:
     return ctf_fs;
 }
 
-bt_component_class_initialize_method_status
-ctf_fs_init(bt_self_component_source *self_comp_src, bt_self_component_source_configuration *,
-            const bt_value *params, void *)
+bt_component_class_initialize_method_status ctf_fs_init(bt_self_component_source *self_comp_src,
+                                                        bt_self_component_source_configuration *,
+                                                        const bt_value *params, void *)
 {
     struct ctf_fs_component *ctf_fs;
     bt_component_class_initialize_method_status ret =
index 83df05105d0a985ec351df539e9d0ef2264193a3..0efb203937ccd78160c3067b474c11148ffc4565 100644 (file)
@@ -222,8 +222,7 @@ ctf_fs_iterator_seek_beginning(bt_self_message_iterator *message_iterator);
 
 /* Create and initialize a new, empty ctf_fs_component. */
 
-struct ctf_fs_component *ctf_fs_component_create(bt_logging_level log_level,
-                                                 bt_self_component *self_comp);
+struct ctf_fs_component *ctf_fs_component_create(bt_logging_level log_level);
 
 /*
  * Create one `struct ctf_fs_trace` from one trace, or multiple traces sharing
index 2f51f7098a9d86315111431066dcf8ac36f0aacf..2c758c25dbd91932302a9e40707b0fcfcf219155 100644 (file)
@@ -338,7 +338,7 @@ trace_infos_query(bt_self_component_class_source *self_comp_class_src, const bt_
         goto error;
     }
 
-    ctf_fs = ctf_fs_component_create(log_level, NULL);
+    ctf_fs = ctf_fs_component_create(log_level);
     if (!ctf_fs) {
         goto error;
     }
This page took 0.028105 seconds and 4 git commands to generate.