summaryrefslogtreecommitdiff
path: root/src/py_xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-11 18:29:21 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-11 18:29:21 -0500
commitc22b8457eff27f5227fdf452e036b33e41e229c2 (patch)
treee7f148c117d852f323560966d15bd3f98b7bddcd /src/py_xact.cc
parent31f85cc8039aa255f04fdccaa6bd9f54f0b65a99 (diff)
downloadfork-ledger-c22b8457eff27f5227fdf452e036b33e41e229c2.tar.gz
fork-ledger-c22b8457eff27f5227fdf452e036b33e41e229c2.tar.bz2
fork-ledger-c22b8457eff27f5227fdf452e036b33e41e229c2.zip
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.
Diffstat (limited to 'src/py_xact.cc')
-rw-r--r--src/py_xact.cc25
1 files changed, 0 insertions, 25 deletions
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<xact_base_t> > ("AutomatedTransaction")
.def(init<predicate_t>())
@@ -142,16 +137,6 @@ void export_xact()
.def("extend_xact", &auto_xact_t::extend_xact)
;
- class_< auto_xact_finalizer_t, bases<xact_finalizer_t> >
- ("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<xact_base_t> > ("PeriodicTransaction")
.def(init<string>())
@@ -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<xact_finalizer_t> >
- ("FunctionalFinalizer", init<func_finalizer_t::func_t>())
- .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