From f256a6120f1e0434dd0d6b156b8a0318d9328c07 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Thu, 17 Dec 2009 16:38:37 -0600 Subject: Clean up a bunch of unnecessary includes in mail/ Over time, extra includes have built up. I'm trying to get a good idea of what are actual dependencies for these files, so I'm cleaning out all of the unused ones. https://bugzilla.gnome.org/show_bug.cgi?id=604952 --- mail/mail-config.c | 32 +++++--------------------------- mail/mail-mt.c | 9 +-------- mail/mail-mt.h | 1 - mail/mail-ops.c | 31 ++++++++----------------------- mail/mail-send-recv.c | 19 +++++++++---------- mail/mail-tools.c | 15 +-------------- 6 files changed, 24 insertions(+), 83 deletions(-) (limited to 'mail') diff --git a/mail/mail-config.c b/mail/mail-config.c index be2125bcc0..4914f26135 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -14,10 +14,12 @@ * * * Authors: - * Jeffrey Stedfast - * Radek Doulik + * Jeffrey Stedfast + * Radek Doulik + * Jonathon Jongsma * * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) + * Copyright (C) 2009 Intel Corporation * */ @@ -25,43 +27,19 @@ #include #endif -#include -#include -#include -#include -#include -#include - -#include -#include - #include #include -#include - -#include - -#include -#include #include #include -#include #include "e-util/e-account-utils.h" #include "e-util/e-signature-utils.h" -#include -#include -#include -#include -#include - -#include +#include #include "e-mail-local.h" #include "mail-config.h" #include "mail-folder-cache.h" -#include "mail-mt.h" #include "mail-session.h" #include "mail-tools.h" diff --git a/mail/mail-mt.c b/mail/mail-mt.c index 93120359c8..3695800bc7 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -23,24 +23,17 @@ #include #include - #include -#include -#include #include -#include +#include #include #include "shell/e-shell.h" -#include "misc/e-gui-utils.h" #include "e-util/e-alert-activity.h" #include "e-util/e-alert-dialog.h" -#include "e-util/e-icon-factory.h" -#include "mail-config.h" -#include "mail-session.h" #include "mail-mt.h" /*#define MALLOC_CHECK*/ diff --git a/mail/mail-mt.h b/mail/mail-mt.h index 7497c377eb..e9d552a41c 100644 --- a/mail/mail-mt.h +++ b/mail/mail-mt.h @@ -24,7 +24,6 @@ #define _MAIL_MT #include "camel/camel-exception.h" -#include "camel/camel-object.h" #include "camel/camel-operation.h" typedef struct _MailMsg MailMsg; diff --git a/mail/mail-ops.c b/mail/mail-ops.c index e07fe19a67..73ad926390 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -16,8 +16,8 @@ * * * Authors: - * Dan Winship - * Jeffrey Stedfast + * Dan Winship + * Jeffrey Stedfast * Peter Williams * Michael Zucchi * @@ -27,47 +27,32 @@ #include -#include -#include -#include -#include #include #include #include - #include +#include +#include #include -#include -#include -#include -#include #include #include -#include -#include -#include -#include -#include +#include +#include #include -#include - -#include "composer/e-msg-composer.h" +#include +#include #include -#include "e-util/e-util.h" #include "e-util/e-account-utils.h" -#include "e-util/e-util-private.h" #include "em-filter-rule.h" #include "em-utils.h" -#include "mail-config.h" #include "mail-mt.h" #include "mail-ops.h" #include "mail-session.h" #include "mail-tools.h" -#include "mail-vfolder.h" #include "e-mail-local.h" diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index be806ef260..1f2ee35a84 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -31,26 +31,25 @@ #include "libedataserver/e-account-list.h" -#include "em-filter-rule.h" #include "camel/camel-filter-driver.h" #include "camel/camel-folder.h" #include "camel/camel-operation.h" #include "camel/camel-store.h" -#include "mail-mt.h" -#include "mail-config.h" -#include "mail-session.h" -#include "mail-tools.h" -#include "mail-ops.h" -#include "mail-send-recv.h" -#include "mail-folder-cache.h" -#include "em-event.h" - #include "shell/e-shell.h" #include "e-util/e-account-utils.h" #include "e-util/gconf-bridge.h" #include "e-mail-local.h" +#include "em-event.h" +#include "em-filter-rule.h" +#include "mail-config.h" +#include "mail-folder-cache.h" +#include "mail-mt.h" +#include "mail-ops.h" +#include "mail-send-recv.h" +#include "mail-session.h" +#include "mail-tools.h" #define d(x) diff --git a/mail/mail-tools.c b/mail/mail-tools.c index 53bf2be0c6..8259abd6c9 100644 --- a/mail/mail-tools.c +++ b/mail/mail-tools.c @@ -34,29 +34,16 @@ #include #include -#include -#include - #include -#include +#include #include #include -#include - -#include "filter/e-filter-option.h" -#include "filter/e-filter-input.h" -#include #include "em-utils.h" -#include "em-vfolder-context.h" -#include "em-vfolder-rule.h" -#include "mail-config.h" #include "mail-folder-cache.h" -#include "mail-mt.h" #include "mail-session.h" #include "mail-tools.h" -#include "mail-vfolder.h" /* **************************************** */ -- cgit v1.2.3