From: Jonathan Rajotte Date: Fri, 25 Oct 2019 22:12:02 +0000 (-0400) Subject: Cleanup: remove unused internal lttng_session_descriptor_get_base_path X-Git-Tag: v2.12.0-rc1~259 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=eaeb5526f89e09189f2e13c429b9dba1b56b2c77 Cleanup: remove unused internal lttng_session_descriptor_get_base_path Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- 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; -}