From: Jérémie Galarneau Date: Tue, 15 Sep 2015 15:01:30 +0000 (-0400) Subject: Remove dead code from add-context command X-Git-Tag: v2.8.0-rc1~357 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8e8f2c41310a1253c333d0f941d72bc079a57363;p=lttng-tools.git Remove dead code from add-context command This removes code ifdef-ed out from the add-context command. Code shall either be used or ditched. Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c index cf3f3efcf..5ac755199 100644 --- a/src/bin/lttng/commands/add_context.c +++ b/src/bin/lttng/commands/add_context.c @@ -40,12 +40,6 @@ static int opt_kernel; static int opt_userspace; static char *opt_type; -#if 0 -/* Not implemented yet */ -static char *opt_cmd_name; -static pid_t opt_pid; -#endif - enum { OPT_HELP = 1, OPT_TYPE, @@ -735,9 +729,6 @@ int cmd_add_context(int argc, const char **argv) break; case OPT_USERSPACE: opt_userspace = 1; -#if 0 - opt_cmd_name = poptGetOptArg(pc); -#endif break; case OPT_LIST_OPTIONS: list_cmd_options(stdout, long_options);