From b54c46c335defa686b07a5ea74efbd6b4e355470 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Sun, 9 Aug 1998 04:37:23 +0000 Subject: [PATCH] get rid of this topgroup thing git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@966 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/Group.c | 4 ---- src/engine/Group.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/engine/Group.c b/src/engine/Group.c index 271df85b1c..4dd2f31b7c 100644 --- a/src/engine/Group.c +++ b/src/engine/Group.c @@ -47,8 +47,6 @@ * knowledge of the internals of the AccountGroup in one file. * \********************************************************************/ -AccountGroup *topgroup = 0x0; - /********************************************************************\ \********************************************************************/ void @@ -84,8 +82,6 @@ xaccFreeAccountGroup( AccountGroup *grp ) int i; if (NULL == grp) return; - if (grp == topgroup) topgroup = NULL; /* safety device */ - for( i=0; inumAcc; i++ ) { xaccFreeAccount( grp->account[i] ); } diff --git a/src/engine/Group.h b/src/engine/Group.h index 142f7f6d82..8b9a4b7b25 100644 --- a/src/engine/Group.h +++ b/src/engine/Group.h @@ -144,8 +144,4 @@ void xaccConsolidateGrpTransactions (AccountGroup *); Account * xaccGroupGetAccount (AccountGroup *, int); double xaccGroupGetBalance (AccountGroup *); - -/** GLOBALS *********************************************************/ -extern AccountGroup *topgroup; - #endif /* __XACC_ACCOUNT_GROUP_H__ */