Global history finaliser does not need core_window stuff.

This commit is contained in:
Michael Drake 2013-06-18 17:25:23 +01:00
parent d6ee11de93
commit 146fea758f
3 changed files with 5 additions and 14 deletions

View File

@ -644,15 +644,9 @@ nserror global_history_init(struct core_window_callback_table *cw_t,
return NSERROR_OK; return NSERROR_OK;
} }
/**
* Finalises the global history module. /* Exported interface, documented in global_history.h */
* nserror global_history_fini(void)
* \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)
{ {
int i; int i;
nserror err; nserror err;

View File

@ -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, * internal data. After calling this if global history is required again,
* global_history_init must be called. * 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 * \return NSERROR_OK on success, appropriate error otherwise
*/ */
nserror global_history_fini(struct core_window_callback_table *cw_t, nserror global_history_fini(void);
void *core_window_handle);
/** /**
* Redraw the global history. * Redraw the global history.

View File

@ -226,7 +226,7 @@ static void treeview_test_fini(struct tree *tree)
{ {
nserror err; nserror err;
err = global_history_fini(&cw_t, (struct core_window *)tree); err = global_history_fini();
treeview_fini(); treeview_fini();