From: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
To: lttng-dev@lists.lttng.org
Cc: jgalar@efficios.com
Subject: [PATCH lttng-tools 3/5] Cleanup: remove unused internal lttng_session_descriptor_get_base_path
Date: Fri, 25 Oct 2019 18:12:02 -0400 [thread overview]
Message-ID: <20191025221204.29696-3-jonathan.rajotte-julien__21119.9904255167$1572041638$gmane$org@efficios.com> (raw)
In-Reply-To: <20191025221204.29696-1-jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
---
Feel free to squash this into the previous commits.
---
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.17.1
next prev parent reply other threads:[~2019-10-25 22:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20191025221204.29696-1-jonathan.rajotte-julien@efficios.com>
2019-10-25 22:12 ` [PATCH lttng-tools 2/5] Refactor: Move set session path to own function Jonathan Rajotte
2019-10-25 22:12 ` Jonathan Rajotte [this message]
2019-10-25 22:12 ` [PATCH lttng-tools 4/5] Tests: base path: lttng load for session configuration Jonathan Rajotte
2019-10-25 22:12 ` [PATCH lttng-tools 5/5] Tests: fix shellcheck warning Jonathan Rajotte
2019-11-06 18:17 ` [PATCH lttng-tools 1/5] Fix: move set base_path of session to URI configuration Jérémie Galarneau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='20191025221204.29696-3-jonathan.rajotte-julien__21119.9904255167$1572041638$gmane$org@efficios.com' \
--to=jonathan.rajotte-julien@efficios.com \
--cc=jgalar@efficios.com \
--cc=lttng-dev@lists.lttng.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).