From 4be79b7d35280cf81c37b03a929253db82b3b204 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 31 Jan 2012 18:09:49 -0500 Subject: Remove the --debug command-line option. This is a silly and misleading option. It gives the impression that it activates extra debugging output, when really it's precisely the same as "evolution &> LOGFILE" and nothing more. --- shell/main.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/shell/main.c b/shell/main.c index 768180234c..c7345979ff 100644 --- a/shell/main.c +++ b/shell/main.c @@ -114,7 +114,6 @@ static gboolean quit = FALSE; static gchar *geometry = NULL; static gchar *requested_view = NULL; -static gchar *evolution_debug_log = NULL; static gchar **remaining_args; static void @@ -325,8 +324,6 @@ static GOptionEntry entries[] = { { "force-shutdown", '\0', 0, G_OPTION_ARG_NONE, &force_shutdown, N_("Forcibly shut down Evolution"), NULL }, #endif - { "debug", '\0', 0, G_OPTION_ARG_STRING, &evolution_debug_log, - N_("Send the debugging output of all components to a file."), "FILE" }, { "disable-eplugin", '\0', 0, G_OPTION_ARG_NONE, &disable_eplugin, N_("Disable loading of any plugins."), NULL }, { "disable-preview", '\0', 0, G_OPTION_ARG_NONE, &disable_preview, @@ -616,18 +613,6 @@ main (gint argc, handle_term_signal, NULL, NULL); #endif - if (evolution_debug_log) { - gint fd; - - fd = g_open (evolution_debug_log, O_WRONLY | O_CREAT | O_TRUNC, 0600); - if (fd != -1) { - dup2 (fd, STDOUT_FILENO); - dup2 (fd, STDERR_FILENO); - close (fd); - } else - g_warning ("Could not set up debugging output file."); - } - e_passwords_init (); gtk_window_set_default_icon_name ("evolution"); -- cgit v1.2.3