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

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