mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Remove kvp-data as a QofInstance object property
Not actually used anywhere, but yet another back door into private data.
This commit is contained in:
parent
4f5e228903
commit
dc8e9c0b00
@ -52,7 +52,6 @@ enum
|
||||
PROP_GUID,
|
||||
PROP_COLLECTION,
|
||||
PROP_BOOK,
|
||||
PROP_KVP_DATA,
|
||||
PROP_LAST_UPDATE,
|
||||
PROP_EDITLEVEL,
|
||||
PROP_DESTROYING,
|
||||
@ -73,12 +72,6 @@ typedef struct QofInstancePrivate
|
||||
/* The entity_table in which this instance is stored */
|
||||
QofBook * book;
|
||||
|
||||
/* kvp_data is a key-value pair database for storing arbirtary
|
||||
* information associated with this instance.
|
||||
* See src/engine/kvp_doc.txt for a list and description of the
|
||||
* important keys. */
|
||||
// KvpFrame *kvp_data;
|
||||
|
||||
/* Timestamp used to track the last modification to this
|
||||
* instance. Typically used to compare two versions of the
|
||||
* same object, to see which is newer. When used with the
|
||||
@ -168,15 +161,6 @@ static void qof_instance_class_init(QofInstanceClass *klass)
|
||||
QOF_TYPE_BOOK,
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property
|
||||
(object_class,
|
||||
PROP_KVP_DATA,
|
||||
g_param_spec_pointer ("kvp-data",
|
||||
"Object KVP Data",
|
||||
"A pointer to the key-value data associated "
|
||||
"with this object.",
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property
|
||||
(object_class,
|
||||
PROP_LAST_UPDATE,
|
||||
@ -384,9 +368,6 @@ qof_instance_get_property (GObject *object,
|
||||
case PROP_BOOK:
|
||||
g_value_take_object(value, priv->book);
|
||||
break;
|
||||
case PROP_KVP_DATA:
|
||||
g_value_set_pointer(value, inst->kvp_data);
|
||||
break;
|
||||
case PROP_LAST_UPDATE:
|
||||
g_value_set_pointer(value, &priv->last_update);
|
||||
break;
|
||||
@ -441,9 +422,6 @@ qof_instance_set_property (GObject *object,
|
||||
case PROP_BOOK:
|
||||
qof_instance_set_book(inst, g_value_get_object(value));
|
||||
break;
|
||||
case PROP_KVP_DATA:
|
||||
qof_instance_set_slots(inst, g_value_get_pointer(value));
|
||||
break;
|
||||
case PROP_LAST_UPDATE:
|
||||
ts = g_value_get_pointer(value);
|
||||
qof_instance_set_last_update(inst, *ts);
|
||||
|
Loading…
Reference in New Issue
Block a user