From 045f1c237f4813bc61e446c317ba2a772613208b Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Fri, 25 Oct 2019 18:12:02 -0400 Subject: [PATCH] Cleanup: remove unused internal lttng_session_descriptor_get_base_path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- include/lttng/session-descriptor-internal.h | 4 ---- src/common/session-descriptor.c | 23 --------------------- 2 files changed, 27 deletions(-) diff --git a/include/lttng/session-descriptor-internal.h b/include/lttng/session-descriptor-internal.h index 18a70bad4..09d493393 100644 --- a/include/lttng/session-descriptor-internal.h +++ b/include/lttng/session-descriptor-internal.h @@ -109,8 +109,4 @@ int lttng_session_descriptor_assign( struct lttng_session_descriptor *dst_descriptor, const struct lttng_session_descriptor *src_descriptor); -LTTNG_HIDDEN -int lttng_session_descriptor_get_base_path(struct lttng_session_descriptor *dst, - const char **base_path); - #endif /* LTTNG_SESSION_DESCRIPTOR_INTERNAL_H */ diff --git a/src/common/session-descriptor.c b/src/common/session-descriptor.c index 6dea5ee7c..224138dd2 100644 --- a/src/common/session-descriptor.c +++ b/src/common/session-descriptor.c @@ -1176,26 +1176,3 @@ int lttng_session_descriptor_assign( end: return ret; } - -LTTNG_HIDDEN -int lttng_session_descriptor_get_base_path(struct lttng_session_descriptor *dst, - const char **_base_path) -{ - switch (dst->output_type) { - case LTTNG_SESSION_DESCRIPTOR_OUTPUT_TYPE_NETWORK: - { - if (dst->output.network.control && - dst->output.network.control->subdir[0]) { - *_base_path = dst->output.network.control->subdir; - } else { - *_base_path = NULL; - } - break; - } - case LTTNG_SESSION_DESCRIPTOR_OUTPUT_TYPE_LOCAL: - case LTTNG_SESSION_DESCRIPTOR_OUTPUT_TYPE_NONE: - *_base_path = NULL; - break; - } - return 0; -} -- 2.34.1