Blame SOURCES/0203-lib-remove-unused-function-make_description_bz.patch

2c83a8
From eb013d53b789cf8b99325618e248b2380c51c815 Mon Sep 17 00:00:00 2001
2c83a8
From: Matej Habrnal <mhabrnal@redhat.com>
2c83a8
Date: Wed, 6 Apr 2016 15:49:23 +0200
2c83a8
Subject: [PATCH] lib: remove unused function make_description_bz
2c83a8
2c83a8
The function was replaced by using problem report api.
2c83a8
2c83a8
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
2c83a8
---
2c83a8
 src/include/internal_libreport.h |  2 --
2c83a8
 src/lib/make_descr.c             | 28 ----------------------------
2c83a8
 2 files changed, 30 deletions(-)
2c83a8
2c83a8
diff --git a/src/include/internal_libreport.h b/src/include/internal_libreport.h
2c83a8
index 4f3c56a..c3b2045 100644
2c83a8
--- a/src/include/internal_libreport.h
2c83a8
+++ b/src/include/internal_libreport.h
2c83a8
@@ -666,8 +666,6 @@ enum {
2c83a8
 };
2c83a8
 #define make_description libreport_make_description
2c83a8
 char *make_description(problem_data_t *problem_data, char **names_to_skip, unsigned max_text_size, unsigned desc_flags);
2c83a8
-#define make_description_bz libreport_make_description_bz
2c83a8
-char* make_description_bz(problem_data_t *problem_data, unsigned max_text_size);
2c83a8
 #define make_description_logger libreport_make_description_logger
2c83a8
 char* make_description_logger(problem_data_t *problem_data, unsigned max_text_size);
2c83a8
 #define make_description_mailx libreport_make_description_mailx
2c83a8
diff --git a/src/lib/make_descr.c b/src/lib/make_descr.c
2c83a8
index fd180a9..a16eb98 100644
2c83a8
--- a/src/lib/make_descr.c
2c83a8
+++ b/src/lib/make_descr.c
2c83a8
@@ -356,34 +356,6 @@ static const char *const blacklisted_items[] = {
2c83a8
     NULL
2c83a8
 };
2c83a8
 
2c83a8
-/* Items we don't want to include in email */
2c83a8
-static const char *const blacklisted_items_mailx[] = {
2c83a8
-    CD_DUMPDIR        ,
2c83a8
-    FILENAME_ANALYZER ,
2c83a8
-    FILENAME_TYPE     ,
2c83a8
-    FILENAME_COREDUMP ,
2c83a8
-    FILENAME_DUPHASH  ,
2c83a8
-    FILENAME_UUID     ,
2c83a8
-    FILENAME_COUNT    ,
2c83a8
-    FILENAME_TAINTED_SHORT,
2c83a8
-    FILENAME_ARCHITECTURE,
2c83a8
-    FILENAME_PACKAGE,
2c83a8
-    FILENAME_OS_RELEASE,
2c83a8
-    FILENAME_COMPONENT,
2c83a8
-    FILENAME_REASON,
2c83a8
-    NULL
2c83a8
-};
2c83a8
-
2c83a8
-char* make_description_bz(problem_data_t *problem_data, unsigned max_text_size)
2c83a8
-{
2c83a8
-    return make_description(
2c83a8
-                problem_data,
2c83a8
-                (char**)blacklisted_items,
2c83a8
-                max_text_size,
2c83a8
-                MAKEDESC_SHOW_FILES | MAKEDESC_SHOW_MULTILINE
2c83a8
-    );
2c83a8
-}
2c83a8
-
2c83a8
 char* make_description_logger(problem_data_t *problem_data, unsigned max_text_size)
2c83a8
 {
2c83a8
     return make_description(
2c83a8
-- 
2c83a8
1.8.3.1
2c83a8