From: Philippe Proulx Date: Sat, 13 Feb 2016 01:01:15 +0000 (-0500) Subject: ir: remove bt_ctf_trace_get() and bt_ctf_trace_put() X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=738537a613441515daf93e778beb7148014b1493 ir: remove bt_ctf_trace_get() and bt_ctf_trace_put() Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- 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