summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-06-18 17:25:23 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-06-18 17:25:23 +0100
commit146fea758f664a93380ed25f8273fb4940634aee (patch)
tree12614755bb743134ac19212b7d426e3ba7f4545b /desktop
parentd6ee11de9365d87fe3e9e4ae94569c8b42136eb3 (diff)
downloadnetsurf-146fea758f664a93380ed25f8273fb4940634aee.tar.gz
netsurf-146fea758f664a93380ed25f8273fb4940634aee.tar.bz2
Global history finaliser does not need core_window stuff.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/global_history.c12
-rw-r--r--desktop/global_history.h5
-rw-r--r--desktop/tree.c2
3 files changed, 5 insertions, 14 deletions
diff --git a/desktop/global_history.c b/desktop/global_history.c
index 27b8e47b4..d159c5063 100644
--- a/desktop/global_history.c
+++ b/desktop/global_history.c
@@ -644,15 +644,9 @@ nserror global_history_init(struct core_window_callback_table *cw_t,
return NSERROR_OK;
}
-/**
- * Finalises the global history module.
- *
- * \param
- * \param
- * \return true on success, false on memory exhaustion
- */
-nserror global_history_fini(struct core_window_callback_table *cw_t,
- void *core_window_handle)
+
+/* Exported interface, documented in global_history.h */
+nserror global_history_fini(void)
{
int i;
nserror err;
diff --git a/desktop/global_history.h b/desktop/global_history.h
index 7e2376b1d..4564920ce 100644
--- a/desktop/global_history.h
+++ b/desktop/global_history.h
@@ -46,12 +46,9 @@ nserror global_history_init(struct core_window_callback_table *cw_t,
* internal data. After calling this if global history is required again,
* global_history_init must be called.
*
- * \param cw_t Callback table for core_window containing the treeview
- * \param cw The core_window in which the treeview is shown
* \return NSERROR_OK on success, appropriate error otherwise
*/
-nserror global_history_fini(struct core_window_callback_table *cw_t,
- void *core_window_handle);
+nserror global_history_fini(void);
/**
* Redraw the global history.
diff --git a/desktop/tree.c b/desktop/tree.c
index d9b0592c8..c33c0f10c 100644
--- a/desktop/tree.c
+++ b/desktop/tree.c
@@ -226,7 +226,7 @@ static void treeview_test_fini(struct tree *tree)
{
nserror err;
- err = global_history_fini(&cw_t, (struct core_window *)tree);
+ err = global_history_fini();
treeview_fini();