From 555b95ceb1bd9a5d0f5738e1c3dfcad463f9d789 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sun, 23 Oct 2016 21:25:00 -0400 Subject: [PATCH] Remove bt_ctf_writer_add_environment_field_int64 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- formats/ctf/writer/writer.c | 16 ---------------- include/babeltrace/ctf-writer/writer.h | 17 ----------------- 2 files changed, 33 deletions(-) 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. * -- 2.34.1