Skip to content

Commit

Permalink
[~qofchoice.cpp] remove, not useful
Browse files Browse the repository at this point in the history
because the options GLists are populated, but are never actually
queried. The QOF_TYPE_CHOICE definition is moved to qofclass.h
  • Loading branch information
christopherlam committed Jun 9, 2024
1 parent fbb08c9 commit ddc7958
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 339 deletions.
2 changes: 0 additions & 2 deletions libgnucash/engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ set (engine_HEADERS
qofbook.h
qofbook.hpp
qofbookslots.h
qofchoice.h
qofclass.h
qofevent.h
qofid-p.h
Expand Down Expand Up @@ -196,7 +195,6 @@ set (engine_SOURCES
kvp-value.cpp
qof-backend.cpp
qofbook.cpp
qofchoice.cpp
qofclass.cpp
qofevent.cpp
qofid.cpp
Expand Down
4 changes: 0 additions & 4 deletions libgnucash/engine/gncAddress.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,6 @@ gboolean gncAddressRegister (void)
};

qof_class_register (GNC_ID_ADDRESS, (QofSortFunc)gncAddressCompare, params);
if (!qof_choice_add_class(GNC_ID_CUSTOMER, GNC_ID_ADDRESS, ADDRESS_OWNER))
{
return FALSE;
}

return qof_object_register(&GncAddressDesc);
}
12 changes: 0 additions & 12 deletions libgnucash/engine/gncCustomer.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,19 +951,7 @@ gboolean gncCustomerRegister (void)
{ NULL },
};

if (!qof_choice_add_class(GNC_ID_INVOICE, GNC_ID_CUSTOMER, INVOICE_OWNER))
{
return FALSE;
}
if (!qof_choice_add_class(GNC_ID_JOB, GNC_ID_CUSTOMER, JOB_OWNER))
{
return FALSE;
}
qof_class_register (_GNC_MOD_NAME, (QofSortFunc)gncCustomerCompare, params);
if (!qof_choice_create(GNC_ID_CUSTOMER))
{
return FALSE;
}
/* temp */
_gncCustomerPrintable(NULL);
return qof_object_register (&gncCustomerDesc);
Expand Down
4 changes: 0 additions & 4 deletions libgnucash/engine/gncInvoice.c
Original file line number Diff line number Diff line change
Expand Up @@ -2308,10 +2308,6 @@ gboolean gncInvoiceRegister (void)
qofInvoiceSetBillTo (NULL, NULL);
qofInvoiceGetBillTo (NULL);
}
if (!qof_choice_create (GNC_ID_INVOICE))
{
return FALSE;
}
return qof_object_register (&gncInvoiceDesc);
}

Expand Down
9 changes: 0 additions & 9 deletions libgnucash/engine/gncJob.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,15 +591,6 @@ gboolean gncJobRegister (void)
{ NULL },
};

if (!qof_choice_create(GNC_ID_JOB))
{
return FALSE;
}
if (!qof_choice_add_class(GNC_ID_INVOICE, GNC_ID_JOB, INVOICE_OWNER))
{
return FALSE;
}

qof_class_register (_GNC_MOD_NAME, (QofSortFunc)gncJobCompare, params);
qofJobGetOwner(NULL);
qofJobSetOwner(NULL, NULL);
Expand Down
9 changes: 0 additions & 9 deletions libgnucash/engine/gncVendor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,15 +1012,6 @@ gboolean gncVendorRegister (void)
{ NULL },
};

if (!qof_choice_add_class(GNC_ID_INVOICE, GNC_ID_VENDOR, INVOICE_OWNER))
{
return FALSE;
}
if (!qof_choice_add_class(GNC_ID_JOB, GNC_ID_VENDOR, JOB_OWNER))
{
return FALSE;
}

qof_class_register (_GNC_MOD_NAME, (QofSortFunc)gncVendorCompare, params);

return qof_object_register (&gncVendorDesc);
Expand Down
1 change: 0 additions & 1 deletion libgnucash/engine/qof.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
#include "qofquery.h"
#include "qofquerycore.h"
#include "qofsession.h"
#include "qofchoice.h"
#include "qof-string-cache.h"

#endif /* QOF_H_ */
127 changes: 0 additions & 127 deletions libgnucash/engine/qofchoice.cpp

This file was deleted.

168 changes: 0 additions & 168 deletions libgnucash/engine/qofchoice.h

This file was deleted.

Loading

0 comments on commit ddc7958

Please sign in to comment.