Cleanup: remove unused internal lttng_session_descriptor_get_base_path
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 25 Oct 2019 22:12:02 +0000 (18:12 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 5 Nov 2019 19:51:11 +0000 (14:51 -0500)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/lttng/session-descriptor-internal.h
src/common/session-descriptor.c

index 18a70bad42af5b8b62271a2ba78a4014f7a96f75..09d493393f1a4ee310a69994bf73b0dec21ba0d8 100644 (file)
@@ -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 */
index 6dea5ee7c09de528ed998113f64502f7748ea75e..224138dd22a2462d3b2c1a89d9839abe84f786d7 100644 (file)
@@ -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;
-}
This page took 0.027202 seconds and 5 git commands to generate.