summaryrefslogtreecommitdiff
path: root/autoxact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-24 04:10:39 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-24 04:10:39 -0400
commit4f56735dfa83b4415be52793bcc99fa4623b69a5 (patch)
tree3ae80552ae3a909f8c7f207a65873b8bd7f54e3b /autoxact.cc
parentc715528f2f778a58b610d1e11cee2a5909b43d1f (diff)
downloadfork-ledger-4f56735dfa83b4415be52793bcc99fa4623b69a5.tar.gz
fork-ledger-4f56735dfa83b4415be52793bcc99fa4623b69a5.tar.bz2
fork-ledger-4f56735dfa83b4415be52793bcc99fa4623b69a5.zip
changed entry_finalizer scheme to use objects, not just function pointers
Diffstat (limited to 'autoxact.cc')
-rw-r--r--autoxact.cc25
1 files changed, 0 insertions, 25 deletions
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 <boost/python.hpp>
-#include <Python.h>
-
-using namespace boost::python;
-using namespace ledger;
-
-void export_autoxact() {
- def("handle_auto_xacts", handle_auto_xacts);
-}
-
-#endif // USE_BOOST_PYTHON