diff options
Diffstat (limited to 'src/analysis/db/item.c')
-rw-r--r-- | src/analysis/db/item.c | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/src/analysis/db/item.c b/src/analysis/db/item.c index a403537..2eb31b1 100644 --- a/src/analysis/db/item.c +++ b/src/analysis/db/item.c @@ -157,7 +157,6 @@ static void g_db_item_dispose(GDbItem *item) static void g_db_item_finalize(GDbItem *item) { exit_rle_string(&item->author); - exit_rle_string(&item->tool); G_OBJECT_CLASS(g_db_item_parent_class)->finalize(G_OBJECT(item)); @@ -314,9 +313,6 @@ static bool _g_db_item_unpack(GDbItem *item, packed_buffer *pbuf) if (result) result = unpack_rle_string(&item->author, pbuf); - if (result) - result = unpack_rle_string(&item->tool, pbuf); - return result; } @@ -371,9 +367,6 @@ static bool _g_db_item_pack(const GDbItem *item, packed_buffer *pbuf) if (result) result = pack_rle_string(&item->author, pbuf); - if (result) - result = pack_rle_string(&item->tool, pbuf); - return result; } @@ -662,15 +655,13 @@ static bool _g_db_item_load(GDbItem *item, const bound_value *values, size_t cou { bool result; /* Bilan global à retourner */ - result = true; + result = load_timestamp(&item->created, "created", values, count); - result &= load_timestamp(&item->created, "created", values, count); - - result &= load_timestamp(&item->timestamp, "timestamp", values, count); - - result &= load_rle_string(&item->author, "author", values, count); + if (result) + result = load_timestamp(&item->timestamp, "timestamp", values, count); - result &= load_rle_string(&item->tool, "tool", values, count); + if (result) + result = load_rle_string(&item->author, "author", values, count); return result; @@ -741,14 +732,6 @@ static bool _g_db_item_store(const GDbItem *item, bound_value **values, size_t * result = store_rle_string(&item->author, "author", values, count); } - if (result) - { - if (item == NULL) - result = store_rle_string(NULL, "tool", values, count); - else - result = store_rle_string(&item->tool, "tool", values, count); - } - return result; } |