X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Ffs-src%2Ffs.c;h=4cd70a21c174e2bd9d0ea5c4b4ab5073935940fb;hb=e22b45d0f7d3ce1311bf96a930bc42326f555202;hp=eac20e420d2c2221106065eb4eed7d7c47b5d502;hpb=bf55043c2e742cafb86d3a3404d0d35c4cf294a3;p=babeltrace.git diff --git a/plugins/ctf/fs-src/fs.c b/plugins/ctf/fs-src/fs.c index eac20e42..4cd70a21 100644 --- a/plugins/ctf/fs-src/fs.c +++ b/plugins/ctf/fs-src/fs.c @@ -964,42 +964,6 @@ end: return ret; } -static -int create_cc_prio_map(struct ctf_fs_trace *ctf_fs_trace) -{ - int ret = 0; - size_t i; - int count; - - BT_ASSERT(ctf_fs_trace); - ctf_fs_trace->cc_prio_map = bt_clock_class_priority_map_create(); - if (!ctf_fs_trace->cc_prio_map) { - ret = -1; - goto end; - } - - count = bt_trace_get_clock_class_count( - ctf_fs_trace->metadata->trace); - BT_ASSERT(count >= 0); - - for (i = 0; i < count; i++) { - struct bt_clock_class *clock_class = - bt_trace_borrow_clock_class_by_index( - ctf_fs_trace->metadata->trace, i); - - BT_ASSERT(clock_class); - ret = bt_clock_class_priority_map_add_clock_class( - ctf_fs_trace->cc_prio_map, clock_class, 0); - - if (ret) { - goto end; - } - } - -end: - return ret; -} - BT_HIDDEN struct ctf_fs_trace *ctf_fs_trace_create(const char *path, const char *name, struct ctf_fs_metadata_config *metadata_config, @@ -1044,11 +1008,6 @@ struct ctf_fs_trace *ctf_fs_trace_create(const char *path, const char *name, goto error; } - ret = create_cc_prio_map(ctf_fs_trace); - if (ret) { - goto error; - } - /* * create_ds_file_groups() created all the streams that this * trace needs. There won't be any more. Therefore it is safe to