aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/util.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2008-07-04 20:54:01 -0300
committerLeandro A. F. Pereira <leandro@hardinfo.org>2008-07-04 20:54:01 -0300
commit4e9d0c3ec6a7038705007b7c12b17b863849d0b6 (patch)
tree8fff4ef249a9caec906b265a7c7c43aa4c96fa4a /hardinfo2/util.c
parent7ebff5f725c632fe3f8ff364e961e34471f58656 (diff)
Remove crash handler. Forgot it caused more problems than helped.
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r--hardinfo2/util.c24
1 files changed, 0 insertions, 24 deletions
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 <sys/stat.h>
#include <sys/types.h>
-#include <crash.h>
-
#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;