From 4e9d0c3ec6a7038705007b7c12b17b863849d0b6 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Fri, 4 Jul 2008 20:54:01 -0300 Subject: Remove crash handler. Forgot it caused more problems than helped. --- hardinfo2/util.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'hardinfo2/util.c') diff --git a/hardinfo2/util.c b/hardinfo2/util.c index 7d27b966..d8f7522f 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -41,8 +41,6 @@ #include #include -#include - #define KiB 1024 #define MiB 1048576 #define GiB 1073741824 @@ -326,19 +324,8 @@ void parameters_init(int *argc, char ***argv, ProgramParameters * param) static gboolean autoload_deps = FALSE; static gchar *report_format = NULL; static gchar **use_modules = NULL; -#ifdef CRASH_DIALOG - static gchar *crash_args = NULL; -#endif static GOptionEntry options[] = { -#ifdef CRASH_DIALOG - { - .long_name = "crash", - .short_name = 'c', - .arg = G_OPTION_ARG_STRING, - .arg_data = &crash_args, - .description = "invokes HardInfo crash handler; do not use directly"}, -#endif { .long_name = "generate-report", .short_name = 'r', @@ -402,17 +389,6 @@ void parameters_init(int *argc, char ***argv, ProgramParameters * param) param->autoload_deps = autoload_deps; param->argv0 = *(argv)[0]; -#ifdef CRASH_DIALOG - if (crash_args) { - DEBUG("invoking crash handler: %s", crash_args); - - gtk_init(argc, argv); - crash_main(crash_args); - - exit(0); - } -#endif - if (report_format && g_str_equal(report_format, "html")) param->report_format = REPORT_FORMAT_HTML; -- cgit v1.2.3