From: Christian Babeux Date: Wed, 15 Aug 2012 16:39:31 +0000 (-0400) Subject: Cleanup: Remove unused get_default_session_name() X-Git-Tag: v2.1.0-rc1~10 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=f9cd0dcde5fb24b3872aea0ba248e1dcab602ff7;p=lttng-tools.git Cleanup: Remove unused get_default_session_name() Acked-by: Mathieu Desnoyers Signed-off-by: Christian Babeux Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/destroy.c b/src/bin/lttng/commands/destroy.c index 7b7ea0e80..cdc2c538c 100644 --- a/src/bin/lttng/commands/destroy.c +++ b/src/bin/lttng/commands/destroy.c @@ -113,21 +113,6 @@ error: return ret; } -/* - * 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 ' first level command */