[lttng-dev] [PATCH lttng-tools 2/2] Cleanup: Remove unused get_default_session_name() function

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Thu Aug 16 10:18:59 EDT 2012


* Christian Babeux (christian.babeux at efficios.com) wrote:
> 
> Signed-off-by: Christian Babeux <christian.babeux at efficios.com>

Acked-by: Mathieu Desnoyers <mathieu.desnoyers 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
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list