From 738537a613441515daf93e778beb7148014b1493 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 12 Feb 2016 20:01:15 -0500 Subject: [PATCH] ir: remove bt_ctf_trace_get() and bt_ctf_trace_put() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/trace.c | 11 ----------- include/babeltrace/ctf-ir/trace.h | 19 ------------------- 2 files changed, 30 deletions(-) diff --git a/formats/ctf/ir/trace.c b/formats/ctf/ir/trace.c index 93093881..660a2ed5 100644 --- a/formats/ctf/ir/trace.c +++ b/formats/ctf/ir/trace.c @@ -1020,17 +1020,6 @@ end: return ret; } -void bt_ctf_trace_get(struct bt_ctf_trace *trace) -{ - bt_get(trace); -} - -void bt_ctf_trace_put(struct bt_ctf_trace *trace) -{ - bt_put(trace); - -} - BT_HIDDEN struct bt_ctf_field_type *get_field_type(enum field_type_alias alias) { diff --git a/include/babeltrace/ctf-ir/trace.h b/include/babeltrace/ctf-ir/trace.h index 407982b3..ec9d2a05 100644 --- a/include/babeltrace/ctf-ir/trace.h +++ b/include/babeltrace/ctf-ir/trace.h @@ -353,25 +353,6 @@ extern struct bt_ctf_field_type *bt_ctf_trace_get_packet_header_type( extern int bt_ctf_trace_set_packet_header_type(struct bt_ctf_trace *trace, struct bt_ctf_field_type *packet_header_type); -/* - * bt_ctf_trace_get and bt_ctf_trace_put: increment and decrement the - * trace's reference count. - * - * You may also use bt_ctf_get() and bt_ctf_put() with trace objects. - * - * These functions ensure that the trace won't be destroyed while it - * is in use. The same number of get and put (plus one extra put to - * release the initial reference done at creation) have to be done to - * destroy a trace. - * - * When the trace's reference count is decremented to 0 by a - * bt_ctf_trace_put, the trace is freed. - * - * @param trace Trace instance. - */ -extern void bt_ctf_trace_get(struct bt_ctf_trace *trace); -extern void bt_ctf_trace_put(struct bt_ctf_trace *trace); - #ifdef __cplusplus } #endif -- 2.34.1