[lttng-dev] [PATCH lttng-tools 2/2] Cleanup: Remove unused get_default_session_name() function
Christian Babeux
christian.babeux at efficios.com
Wed Aug 15 12:39:31 EDT 2012
Signed-off-by: Christian Babeux <christian.babeux at efficios.com>
---
src/bin/lttng/commands/destroy.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/src/bin/lttng/commands/destroy.c b/src/bin/lttng/commands/destroy.c
index 7b7ea0e..cdc2c53 100644
--- a/src/bin/lttng/commands/destroy.c
+++ b/src/bin/lttng/commands/destroy.c
@@ -114,21 +114,6 @@ error:
}
/*
- * get_default_session_name
- *
- * Returns the default sessions name, if any
- */
-static int get_default_session_name(char **name)
-{
- char *session_name = get_session_name();
- if (session_name == NULL) {
- return CMD_ERROR;
- }
- *name = session_name;
- return CMD_SUCCESS;
-}
-
-/*
* The 'destroy <options>' first level command
*/
int cmd_destroy(int argc, const char **argv)
--
1.7.11.4
More information about the lttng-dev
mailing list