doczkal / rpms / abrt

Forked from rpms/abrt 4 years ago
Clone

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

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