diff --git a/libgnucash/engine/CMakeLists.txt b/libgnucash/engine/CMakeLists.txt index 14a2420331..d860bd4361 100644 --- a/libgnucash/engine/CMakeLists.txt +++ b/libgnucash/engine/CMakeLists.txt @@ -6,7 +6,6 @@ add_subdirectory(mocks) set(engine_noinst_HEADERS AccountP.h - ScrubP.h SplitP.h SX-book.h SX-ttinfo.h diff --git a/libgnucash/engine/Scrub.c b/libgnucash/engine/Scrub.c index d5007cac1d..3965ab1b0d 100644 --- a/libgnucash/engine/Scrub.c +++ b/libgnucash/engine/Scrub.c @@ -47,7 +47,6 @@ #include "Account.h" #include "AccountP.h" #include "Scrub.h" -#include "ScrubP.h" #include "Transaction.h" #include "TransactionP.h" #include "gnc-commodity.h" @@ -60,6 +59,13 @@ static QofLogModule log_module = G_LOG_DOMAIN; static gboolean abort_now = FALSE; static gint scrub_depth = 0; + +static Account* xaccScrubUtilityGetOrMakeAccount (Account *root, + gnc_commodity* currency, + const char* accname, + GNCAccountType acctype, + gboolean placeholder); + void gnc_set_abort_scrub (gboolean abort) { diff --git a/libgnucash/engine/Scrub2.c b/libgnucash/engine/Scrub2.c index 0aaf266a8a..fd49f6d7bb 100644 --- a/libgnucash/engine/Scrub2.c +++ b/libgnucash/engine/Scrub2.c @@ -40,7 +40,6 @@ #include "Transaction.h" #include "TransactionP.h" #include "Scrub2.h" -#include "ScrubP.h" #include "cap-gains.h" #include "gnc-engine.h" #include "gncInvoice.h" diff --git a/libgnucash/engine/ScrubP.h b/libgnucash/engine/ScrubP.h deleted file mode 100644 index b8818643e8..0000000000 --- a/libgnucash/engine/ScrubP.h +++ /dev/null @@ -1,41 +0,0 @@ -/********************************************************************\ - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU General Public License as * - * published by the Free Software Foundation; either version 2 of * - * the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License* - * along with this program; if not, contact: * - * * - * Free Software Foundation Voice: +1-617-542-5942 * - * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * - * Boston, MA 02110-1301, USA gnu@gnu.org * -\********************************************************************/ - -/** @file ScrubP.h - * - * This is the *private* header for the scrub routines. - * No one outside of the engine should ever include this file. - * - * Copyright (C) 2003, Linas Vepstas - */ - -#ifndef XACC_SCRUB_P_H -#define XACC_SCRUB_P_H - -#include "Account.h" -#include "gnc-commodity.h" -#include "gnc-engine.h" - -/* Utility to make account by name. Not for public use. */ -Account * xaccScrubUtilityGetOrMakeAccount (Account *root, - gnc_commodity * currency, const char *accname, - GNCAccountType acctype, gboolean placeholder); - - -#endif /* XACC_SCRUB_P_H */