Remove dead code from add-context command
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 15 Sep 2015 15:01:30 +0000 (11:01 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 15 Sep 2015 15:37:32 +0000 (11:37 -0400)
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 <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/add_context.c

index cf3f3efcf36f87464e5c5eb05425e6bcfccbbd8e..5ac755199eead42c69e90befeecb3f4aec5bdc71 100644 (file)
@@ -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);
This page took 0.025201 seconds and 4 git commands to generate.