From c22b8457eff27f5227fdf452e036b33e41e229c2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 11 Nov 2009 18:29:21 -0500 Subject: Did away with the "finalizer" abstraction This was from an earlier time, when it was intended to be used by Python. But it's not needed anymore. --- src/py_xact.cc | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/py_xact.cc') diff --git a/src/py_xact.cc b/src/py_xact.cc index 6feb6080..81847656 100644 --- a/src/py_xact.cc +++ b/src/py_xact.cc @@ -127,11 +127,6 @@ void export_xact() .def("valid", &xact_t::valid) ; - class_< xact_finalizer_t, boost::noncopyable > - ("TransactionFinalizer", no_init) - .def("__call__", &xact_finalizer_t::operator()) - ; - class_< auto_xact_t, bases > ("AutomatedTransaction") .def(init()) @@ -142,16 +137,6 @@ void export_xact() .def("extend_xact", &auto_xact_t::extend_xact) ; - class_< auto_xact_finalizer_t, bases > - ("AutomatedTransactionFinalizer") - .add_property("journal", - make_getter(&auto_xact_finalizer_t::journal, - return_internal_reference<>()), - make_setter(&auto_xact_finalizer_t::journal, - with_custodian_and_ward<1, 2>())) - .def("__call__", &auto_xact_finalizer_t::operator()) - ; - class_< period_xact_t, bases > ("PeriodicTransaction") .def(init()) @@ -162,16 +147,6 @@ void export_xact() make_getter(&period_xact_t::period_string), make_setter(&period_xact_t::period_string)) ; - - class_< func_finalizer_t, bases > - ("FunctionalFinalizer", init()) - .add_property("func", - make_getter(&func_finalizer_t::func), - make_setter(&func_finalizer_t::func)) - .def("__call__", &func_finalizer_t::operator()) - ; - - scope().attr("extend_xact_base") = &extend_xact_base; } } // namespace ledger -- cgit v1.2.3