mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
remove SetGuid function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9596 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
93e1d35a87
commit
80c44c76a6
@ -214,13 +214,6 @@ void gncJobSetReference (GncJob *job, const char *desc)
|
||||
gncJobCommitEdit (job);
|
||||
}
|
||||
|
||||
void gncJobSetGUID (GncJob *job, const GUID *guid)
|
||||
{
|
||||
if (!job || !guid) return;
|
||||
|
||||
qof_entity_set_guid(&job->inst.entity, guid);
|
||||
}
|
||||
|
||||
void gncJobSetOwner (GncJob *job, GncOwner *owner)
|
||||
{
|
||||
if (!job) return;
|
||||
|
@ -33,7 +33,6 @@
|
||||
|
||||
gboolean gncJobRegister (void);
|
||||
gint64 gncJobNextID (QofBook *book);
|
||||
void gncJobSetGUID (GncJob *job, const GUID *guid);
|
||||
|
||||
/** The gncCloneTaxTable() routine makes a copy of the indicated
|
||||
* tax table, placing it in the indicated book. It copies
|
||||
@ -54,5 +53,6 @@ GncJob * gncCloneJob (GncJob *from, QofBook *book);
|
||||
*/
|
||||
GncJob * gncJobObtainTwin (GncJob *from, QofBook *book);
|
||||
|
||||
#define gncJobSetGUID(E,G) qof_entity_set_guid(QOF_ENTITY(E),(G))
|
||||
|
||||
#endif /* GNC_JOBP_H_ */
|
||||
|
@ -387,18 +387,6 @@ CloneTaxEntry (GncTaxTableEntry*from, QofBook *book)
|
||||
/* =============================================================== */
|
||||
/* Set Functions */
|
||||
|
||||
void gncTaxTableSetGUID (GncTaxTable *table, const GUID *guid)
|
||||
{
|
||||
if (!table || !guid) return;
|
||||
if (guid_equal (guid, &table->inst.entity. guid)) return;
|
||||
|
||||
gncTaxTableBeginEdit (table);
|
||||
remObj (table);
|
||||
qof_entity_set_guid(&table->inst.entity, guid);
|
||||
addObj (table);
|
||||
gncTaxTableCommitEdit (table);
|
||||
}
|
||||
|
||||
void gncTaxTableSetName (GncTaxTable *table, const char *name)
|
||||
{
|
||||
if (!table || !name) return;
|
||||
|
@ -33,7 +33,6 @@
|
||||
|
||||
gboolean gncTaxTableRegister (void);
|
||||
|
||||
void gncTaxTableSetGUID (GncTaxTable *table, const GUID *guid);
|
||||
void gncTaxTableSetParent (GncTaxTable *table, GncTaxTable *parent);
|
||||
void gncTaxTableSetChild (GncTaxTable *table, GncTaxTable *child);
|
||||
void gncTaxTableSetRefcount (GncTaxTable *table, gint64 refcount);
|
||||
@ -64,4 +63,6 @@ GncTaxTable * gncCloneTaxTable (GncTaxTable *from, QofBook *book);
|
||||
*/
|
||||
GncTaxTable * gncTaxTableObtainTwin (GncTaxTable *from, QofBook *book);
|
||||
|
||||
#define gncTaxTableSetGUID(E,G) qof_entity_set_guid(QOF_ENTITY(E),(G))
|
||||
|
||||
#endif /* GNC_TAXTABLEP_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user