47a88a
From 660d3a6f150a59433f78a1ca330e446b7846d4b8 Mon Sep 17 00:00:00 2001
47a88a
From: Richard Marko <rmarko@fedoraproject.org>
47a88a
Date: Wed, 20 May 2015 14:36:28 +0200
47a88a
Subject: [PATCH] cli: remove dead code
47a88a
47a88a
Related: #1224984
47a88a
47a88a
Signed-off-by: Richard Marko <rmarko@fedoraproject.org>
47a88a
---
47a88a
 src/cli/abrt-cli.c | 19 -------------------
47a88a
 1 file changed, 19 deletions(-)
47a88a
47a88a
diff --git a/src/cli/abrt-cli.c b/src/cli/abrt-cli.c
47a88a
index bc11c7f..8e19081 100644
47a88a
--- a/src/cli/abrt-cli.c
47a88a
+++ b/src/cli/abrt-cli.c
47a88a
@@ -75,25 +75,6 @@ static unsigned handle_internal_options(int argc, const char **argv, const char
47a88a
         {
47a88a
             return skip + argc;
47a88a
         }
47a88a
-#if 0
47a88a
-        if (prefixcmp(cmd, "--base-dir=") == 0)
47a88a
-            D_list = g_list_append(D_list, xstrdup(cmd + strlen("--base-dir=")));
47a88a
-        else if (prefixcmp(cmd, "--list-events") == 0)
47a88a
-        {
47a88a
-            const char *pfx = cmd + strlen("--list-events");
47a88a
-            if (pfx && *pfx)
47a88a
-                pfx += 1; /* skip '=' */
47a88a
-
47a88a
-            char *events = list_possible_events(NULL, dump_dir_name, pfx);
47a88a
-            if (!events)
47a88a
-                exit(1); /* error msg is already logged */
47a88a
-
47a88a
-            fputs(events, stdout);
47a88a
-            free(events);
47a88a
-
47a88a
-            exit(0);
47a88a
-        }
47a88a
-#endif
47a88a
         else
47a88a
             error_msg_and_die("%s", usage);
47a88a
 
47a88a
-- 
47a88a
2.4.3
47a88a