From 35ba93ed48fe20af3f3b57a9d41d619d22850658 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sun, 15 Aug 2010 09:05:05 +0000 Subject: [PATCH] Remove unused file from both SVN and POTFILES.in. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19434 57a11ea4-9604-0410-9ed3-97b8803252fd --- po/POTFILES.in | 1 - src/engine/gncBusPeriod.c | 81 --------------------------------------- 2 files changed, 82 deletions(-) delete mode 100644 src/engine/gncBusPeriod.c diff --git a/po/POTFILES.in b/po/POTFILES.in index 7e6255fdc5..945b92e1f4 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -151,7 +151,6 @@ src/engine/gnc-associate-account.c src/engine/gncBillTerm.c src/engine/gnc-budget.c src/engine/gncBusGuile.c -src/engine/gncBusPeriod.c src/engine/gnc-commodity.c src/engine/gncCustomer.c src/engine/gncEmployee.c diff --git a/src/engine/gncBusPeriod.c b/src/engine/gncBusPeriod.c deleted file mode 100644 index 527c6bbef1..0000000000 --- a/src/engine/gncBusPeriod.c +++ /dev/null @@ -1,81 +0,0 @@ - -/* -XXX TODO: --- contemplate a per-collection (per type) edit/commmit-edit, - clone, dirty, etc. functions some more ... - --- turn clone into a generic object callback, so that - the ObtainTwin could be qof_instance_obtain_twin, - a generic function. (right now its copied everywhere) - --- contemplate copy-on-write, and the true need for cloning, - and how to avoid excess cloning for the SQL backend. - --- billterm and taxtables are incompletely cloned, not sure - what to do with refcount, ask warlord, need to explore. - --- The following business objects have an id/name/desc/active - this could be abstracted into an common object. - vendor (customer) - bill term (but bill terms doesn't have id or active) - job - --- gncVendor should be a base class to gncCustomer (they're - identical, but customer adds more stuff). - - Employee could be base class for vendor, its got some of the - things (name, addr, active, currency) - --- TaxTable and BillTerm have common parent/child code. - this could be abstracted into common code. - -======= --- finish clone of invoice, entry, - - --- jobs in the vendor job list that are no longer active should - be kept back in old book, removed from new book?? - ditto jobs in the customer list ?? - --- closed orders can be removed from new book ? -*/ - - - -#include "gncBusiness.h" - -/** Copy all customers from one book to another. Do this - * by iterating over all existing customers in the src book, - * and creating a clone for the dest book. */ - -void -gncCustomerCopyAll (QofBook *dest_book, QofBook *src_book) -{ - -} - -static void -bill_term_copy_helper (gpointer object, gpointer user_data) -{ - QofBook *dest_book = user_data; - gncBillTerm *src_term = object; - gncCloneBillTerm (src_term, dest_book); -} - -void -gncBillTermCopyAll (QofBook *dest_book, QofBook *src_book) -{ - qof_object_foreach (GNC_BILLTERM_MODULE_NAME, - src_book, bill_term_copy_helper, dest_book); -} - - - -partition (QofBook *dest_book, QofBook *src_book) -{ - - /* Copy all bill terms first, since the CustomerCopy expects - * these to be in place already. */ - /* XXX not strictly needed, the customer can pull their own .. ? */ - gncBillTermCopyAll (dest_book, src_book); -}