From 706c92bf8f6d2737c1e38f707fd792bceb75af6a Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 18 May 2014 18:51:18 +0100 Subject: [PATCH] remove uneeded includes --- desktop/global_history.c | 8 +++++--- desktop/global_history.h | 4 ++-- desktop/hotlist.c | 1 + desktop/hotlist.h | 4 ++-- desktop/sslcert_viewer.h | 1 - 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/desktop/global_history.c b/desktop/global_history.c index c29b05145..09154f2d1 100644 --- a/desktop/global_history.c +++ b/desktop/global_history.c @@ -19,14 +19,16 @@ #include -#include "content/urldb.h" -#include "desktop/global_history.h" -#include "desktop/treeview.h" #include "utils/messages.h" #include "utils/utils.h" #include "utils/utf8.h" #include "utils/libdom.h" #include "utils/log.h" +#include "content/urldb.h" + +#include "desktop/global_history.h" +#include "desktop/treeview.h" +#include "desktop/browser.h" #define N_DAYS 28 #define N_SEC_PER_DAY (60 * 60 * 24) diff --git a/desktop/global_history.h b/desktop/global_history.h index 7c49cfcb7..463ab1b9c 100644 --- a/desktop/global_history.h +++ b/desktop/global_history.h @@ -22,12 +22,12 @@ #include #include -#include "desktop/browser.h" #include "desktop/core_window.h" #include "desktop/textinput.h" #include "utils/errors.h" #include "utils/nsurl.h" +enum browser_mouse_state; /** * Initialise the global history. @@ -92,7 +92,7 @@ void global_history_redraw(int x, int y, struct rect *clip, * \param x X coordinate * \param y Y coordinate */ -void global_history_mouse_action(browser_mouse_state mouse, int x, int y); +void global_history_mouse_action(enum browser_mouse_state mouse, int x, int y); /** * Key press handling. diff --git a/desktop/hotlist.c b/desktop/hotlist.c index 6814f8d2e..f9a390e1a 100644 --- a/desktop/hotlist.c +++ b/desktop/hotlist.c @@ -26,6 +26,7 @@ #include "content/urldb.h" #include "desktop/hotlist.h" #include "desktop/treeview.h" +#include "desktop/browser.h" #include "utils/corestrings.h" #include "utils/messages.h" #include "utils/utils.h" diff --git a/desktop/hotlist.h b/desktop/hotlist.h index e5ae83499..7e2aa6955 100644 --- a/desktop/hotlist.h +++ b/desktop/hotlist.h @@ -22,12 +22,12 @@ #include #include -#include "desktop/browser.h" #include "desktop/core_window.h" #include "desktop/textinput.h" #include "utils/errors.h" #include "utils/nsurl.h" +enum browser_mouse_state; /** * Initialise the hotlist. @@ -183,7 +183,7 @@ void hotlist_redraw(int x, int y, struct rect *clip, * \param x X coordinate * \param y Y coordinate */ -void hotlist_mouse_action(browser_mouse_state mouse, int x, int y); +void hotlist_mouse_action(enum browser_mouse_state mouse, int x, int y); /** * Key press handling. diff --git a/desktop/sslcert_viewer.h b/desktop/sslcert_viewer.h index e02f095f5..d6b0c1b8b 100644 --- a/desktop/sslcert_viewer.h +++ b/desktop/sslcert_viewer.h @@ -24,7 +24,6 @@ #include #include -#include "desktop/browser.h" #include "desktop/core_window.h" #include "desktop/textinput.h" #include "utils/errors.h"