r16697 - gnucash/branches/gda-dev/src/backend/gda - Remove some obsolete guid handling code
Phil Longstaff
plongstaff at cvs.gnucash.org
Sat Dec 22 15:24:43 EST 2007
Author: plongstaff
Date: 2007-12-22 15:24:43 -0500 (Sat, 22 Dec 2007)
New Revision: 16697
Trac: http://svn.gnucash.org/trac/changeset/16697
Modified:
gnucash/branches/gda-dev/src/backend/gda/gnc-transaction-gda.c
Log:
Remove some obsolete guid handling code
Modified: gnucash/branches/gda-dev/src/backend/gda/gnc-transaction-gda.c
===================================================================
--- gnucash/branches/gda-dev/src/backend/gda/gnc-transaction-gda.c 2007-12-22 20:03:18 UTC (rev 16696)
+++ gnucash/branches/gda-dev/src/backend/gda/gnc-transaction-gda.c 2007-12-22 20:24:43 UTC (rev 16697)
@@ -56,10 +56,6 @@
const GUID* guid;
} split_info_t;
-static gpointer get_guid( gpointer pObject, const QofParam* param );
-static void set_guid( gpointer pObject, gpointer pValue );
-static gpointer get_tx_num( gpointer pObject, const QofParam* param );
-static void set_tx_num( gpointer pObject, gpointer pValue );
static gpointer get_tx_post_date( gpointer pObject, const QofParam* param );
static void set_tx_post_date( gpointer pObject, gpointer pValue );
static gpointer get_tx_enter_date( gpointer pObject, const QofParam* param );
@@ -105,48 +101,15 @@
static col_cvt_t guid_col_table[] =
{
- { "tx_guid", CT_GUID, 0, 0, NULL, NULL, get_guid, set_guid },
+ { "tx_guid", CT_GUID, 0, 0, "guid" },
{ NULL }
};
static void retrieve_numeric_value( gpointer pObject, gnc_numeric value );
/* ================================================================= */
-static gpointer
-get_guid( gpointer pObject, const QofParam* param )
-{
- return (gpointer)qof_instance_get_guid( QOF_INSTANCE(pObject) );
-}
-static void
-set_guid( gpointer pObject, gpointer pValue )
-{
- QofInstance* pInstance = QOF_INSTANCE(pObject);
- GUID* guid = (GUID*)pValue;
-
- qof_instance_set_guid( pInstance, guid );
-}
-
static gpointer
-get_tx_num( gpointer pObject, const QofParam* param )
-{
- const Transaction* pTx = GNC_TRANS(pObject);
- const gchar* s;
-
- s = xaccTransGetNum( pTx );
- return (gpointer)s;
-}
-
-static void
-set_tx_num( gpointer pObject, gpointer pValue )
-{
- Transaction* pTx = GNC_TRANS(pObject);
- const gchar* s = (const gchar*)pValue;
-
- xaccTransSetNum( pTx, s );
-}
-
-static gpointer
get_tx_post_date( gpointer pObject, const QofParam* param )
{
const Transaction* pTx = GNC_TRANS(pObject);
More information about the gnucash-changes
mailing list