From 146fea758f664a93380ed25f8273fb4940634aee Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 18 Jun 2013 17:25:23 +0100 Subject: Global history finaliser does not need core_window stuff. --- desktop/global_history.c | 12 +++--------- desktop/global_history.h | 5 +---- desktop/tree.c | 2 +- 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(); -- cgit v1.2.3