Move gnc_get_session function to a better location.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7294 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2002-10-12 21:33:15 +00:00
parent 69fcd3292b
commit 870f8ecbb1
6 changed files with 51 additions and 60 deletions

View File

@@ -58,8 +58,6 @@ static gboolean reverse_balance_inited = FALSE;
static SCM reverse_balance_callback_id = SCM_UNDEFINED;
static gboolean reverse_type[NUM_ACCOUNT_TYPES];
static GNCSessionCB session_cb = NULL;
/********************************************************************\
* gnc_color_deficits *
@@ -204,21 +202,6 @@ gnc_reverse_balance (Account *account)
return reverse_type[type];
}
void
gnc_set_current_session_handler (GNCSessionCB cb)
{
session_cb = cb;
}
GNCSession *
gnc_get_current_session (void)
{
if (session_cb)
return session_cb ();
return NULL;
}
GNCBook *
gnc_get_current_book (void)
{