From: Jérémie Galarneau Date: Mon, 24 Oct 2016 01:25:00 +0000 (-0400) Subject: Remove bt_ctf_writer_add_environment_field_int64 X-Git-Tag: v1.5.0-rc1~7 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=555b95ceb1bd9a5d0f5738e1c3dfcad463f9d789 Remove bt_ctf_writer_add_environment_field_int64 Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/writer/writer.c b/formats/ctf/writer/writer.c index 012b3ef0..6c294931 100644 --- a/formats/ctf/writer/writer.c +++ b/formats/ctf/writer/writer.c @@ -209,22 +209,6 @@ end: return ret; } -int bt_ctf_writer_add_environment_field_int64(struct bt_ctf_writer *writer, - const char *name, - int64_t value) -{ - int ret = -1; - - if (!writer || !name) { - goto end; - } - - ret = bt_ctf_trace_set_environment_field_integer(writer->trace, name, - value); -end: - return ret; -} - int bt_ctf_writer_add_clock(struct bt_ctf_writer *writer, struct bt_ctf_clock *clock) { diff --git a/include/babeltrace/ctf-writer/writer.h b/include/babeltrace/ctf-writer/writer.h index 140bc5fd..940736fe 100644 --- a/include/babeltrace/ctf-writer/writer.h +++ b/include/babeltrace/ctf-writer/writer.h @@ -95,23 +95,6 @@ extern int bt_ctf_writer_add_environment_field(struct bt_ctf_writer *writer, const char *name, const char *value); -/* - * bt_ctf_writer_add_environment_field_int64: add an environment field to the trace. - * - * Add an environment field to the trace. The name and value parameters are - * copied. - * - * @param writer Writer instance. - * @param name Name of the environment field (will be copied). - * @param value Value of the environment field. - * - * Returns 0 on success, a negative value on error. - */ -extern int bt_ctf_writer_add_environment_field_int64( - struct bt_ctf_writer *writer, - const char *name, - int64_t value); - /* * bt_ctf_writer_add_clock: add a clock to the trace. *