Skip to content

Commit ddc7958

Browse files
[~qofchoice.cpp] remove, not useful
because the options GLists are populated, but are never actually queried. The QOF_TYPE_CHOICE definition is moved to qofclass.h
1 parent fbb08c9 commit ddc7958

File tree

13 files changed

+1
-339
lines changed

13 files changed

+1
-339
lines changed

libgnucash/engine/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ set (engine_HEADERS
108108
qofbook.h
109109
qofbook.hpp
110110
qofbookslots.h
111-
qofchoice.h
112111
qofclass.h
113112
qofevent.h
114113
qofid-p.h
@@ -196,7 +195,6 @@ set (engine_SOURCES
196195
kvp-value.cpp
197196
qof-backend.cpp
198197
qofbook.cpp
199-
qofchoice.cpp
200198
qofclass.cpp
201199
qofevent.cpp
202200
qofid.cpp

libgnucash/engine/gncAddress.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,6 @@ gboolean gncAddressRegister (void)
661661
};
662662

663663
qof_class_register (GNC_ID_ADDRESS, (QofSortFunc)gncAddressCompare, params);
664-
if (!qof_choice_add_class(GNC_ID_CUSTOMER, GNC_ID_ADDRESS, ADDRESS_OWNER))
665-
{
666-
return FALSE;
667-
}
668664

669665
return qof_object_register(&GncAddressDesc);
670666
}

libgnucash/engine/gncCustomer.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -951,19 +951,7 @@ gboolean gncCustomerRegister (void)
951951
{ NULL },
952952
};
953953

954-
if (!qof_choice_add_class(GNC_ID_INVOICE, GNC_ID_CUSTOMER, INVOICE_OWNER))
955-
{
956-
return FALSE;
957-
}
958-
if (!qof_choice_add_class(GNC_ID_JOB, GNC_ID_CUSTOMER, JOB_OWNER))
959-
{
960-
return FALSE;
961-
}
962954
qof_class_register (_GNC_MOD_NAME, (QofSortFunc)gncCustomerCompare, params);
963-
if (!qof_choice_create(GNC_ID_CUSTOMER))
964-
{
965-
return FALSE;
966-
}
967955
/* temp */
968956
_gncCustomerPrintable(NULL);
969957
return qof_object_register (&gncCustomerDesc);

libgnucash/engine/gncInvoice.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2308,10 +2308,6 @@ gboolean gncInvoiceRegister (void)
23082308
qofInvoiceSetBillTo (NULL, NULL);
23092309
qofInvoiceGetBillTo (NULL);
23102310
}
2311-
if (!qof_choice_create (GNC_ID_INVOICE))
2312-
{
2313-
return FALSE;
2314-
}
23152311
return qof_object_register (&gncInvoiceDesc);
23162312
}
23172313

libgnucash/engine/gncJob.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -591,15 +591,6 @@ gboolean gncJobRegister (void)
591591
{ NULL },
592592
};
593593

594-
if (!qof_choice_create(GNC_ID_JOB))
595-
{
596-
return FALSE;
597-
}
598-
if (!qof_choice_add_class(GNC_ID_INVOICE, GNC_ID_JOB, INVOICE_OWNER))
599-
{
600-
return FALSE;
601-
}
602-
603594
qof_class_register (_GNC_MOD_NAME, (QofSortFunc)gncJobCompare, params);
604595
qofJobGetOwner(NULL);
605596
qofJobSetOwner(NULL, NULL);

libgnucash/engine/gncVendor.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,15 +1012,6 @@ gboolean gncVendorRegister (void)
10121012
{ NULL },
10131013
};
10141014

1015-
if (!qof_choice_add_class(GNC_ID_INVOICE, GNC_ID_VENDOR, INVOICE_OWNER))
1016-
{
1017-
return FALSE;
1018-
}
1019-
if (!qof_choice_add_class(GNC_ID_JOB, GNC_ID_VENDOR, JOB_OWNER))
1020-
{
1021-
return FALSE;
1022-
}
1023-
10241015
qof_class_register (_GNC_MOD_NAME, (QofSortFunc)gncVendorCompare, params);
10251016

10261017
return qof_object_register (&gncVendorDesc);

libgnucash/engine/qof.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
#include "qofquery.h"
8686
#include "qofquerycore.h"
8787
#include "qofsession.h"
88-
#include "qofchoice.h"
8988
#include "qof-string-cache.h"
9089

9190
#endif /* QOF_H_ */

libgnucash/engine/qofchoice.cpp

Lines changed: 0 additions & 127 deletions
This file was deleted.

libgnucash/engine/qofchoice.h

Lines changed: 0 additions & 168 deletions
This file was deleted.

0 commit comments

Comments
 (0)