Make xaccScrubUtilityGetOrMakeAccount static and remove ScrubP.h

It being the only declaration in ScrubP.h
This commit is contained in:
John Ralls 2021-01-26 14:56:29 -08:00
parent 80180c2ad9
commit bcbebe62b1
4 changed files with 7 additions and 44 deletions

View File

@ -6,7 +6,6 @@ add_subdirectory(mocks)
set(engine_noinst_HEADERS
AccountP.h
ScrubP.h
SplitP.h
SX-book.h
SX-ttinfo.h

View File

@ -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)
{

View File

@ -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"

View File

@ -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 <linas@linas.org>
*/
#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 */