ir: remove bt_ctf_trace_get() and bt_ctf_trace_put()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 13 Feb 2016 01:01:15 +0000 (20:01 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 19 Feb 2016 23:10:52 +0000 (18:10 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/trace.c
include/babeltrace/ctf-ir/trace.h

index 93093881709c808b461b0068dcc79edd9bb403bd..660a2ed5c6abf438687345aa0083b3dbb6667f71 100644 (file)
@@ -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)
 {
index 407982b30e8bb474fd088e15ddd591b5b34d4030..ec9d2a0532c82e540b1c54bcc244a18dad32817f 100644 (file)
@@ -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
This page took 0.028888 seconds and 4 git commands to generate.