From 4f56735dfa83b4415be52793bcc99fa4623b69a5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 24 Sep 2004 04:10:39 -0400 Subject: changed entry_finalizer scheme to use objects, not just function pointers --- autoxact.cc | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'autoxact.cc') diff --git a/autoxact.cc b/autoxact.cc index 4de8122d..bed69e2e 100644 --- a/autoxact.cc +++ b/autoxact.cc @@ -27,29 +27,4 @@ void automated_transaction_t::extend_entry(entry_t& entry) } } -automated_transactions_t * current_auto_xacts = NULL; - -bool handle_auto_xacts(entry_t& entry) -{ - if (current_auto_xacts && - ! current_auto_xacts->automated_transactions.empty()) - current_auto_xacts->extend_entry(entry); - - return true; -} - } // namespace ledger - -#ifdef USE_BOOST_PYTHON - -#include -#include - -using namespace boost::python; -using namespace ledger; - -void export_autoxact() { - def("handle_auto_xacts", handle_auto_xacts); -} - -#endif // USE_BOOST_PYTHON -- cgit v1.2.3