Blame SOURCES/0137-cli-remove-dead-code.patch

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