From a8012940f4d15a2e1d8fbdac02a631dae6231b1e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 15 Feb 2006 20:10:49 +0000 Subject: Removed Python integration support. --- binary.cc | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'binary.cc') diff --git a/binary.cc b/binary.cc index 227b7919..367e4e75 100644 --- a/binary.cc +++ b/binary.cc @@ -795,30 +795,3 @@ void write_binary_journal(std::ostream& out, journal_t * journal) } } // namespace ledger - -#ifdef USE_BOOST_PYTHON - -#include - -using namespace boost::python; -using namespace ledger; - -BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(binary_parse_overloads, - binary_parser_t::parse, 2, 4) - -void py_write_binary_journal(const std::string& path, journal_t * journal) -{ - std::ofstream out(path.c_str()); - write_binary_journal(out, journal); -} - -void export_binary() { - class_< binary_parser_t, bases > ("BinaryParser") - .def("test", &binary_parser_t::test) - .def("parse", &binary_parser_t::parse, binary_parse_overloads()) - ; - - def("write_binary_journal", py_write_binary_journal); -} - -#endif // USE_BOOST_PYTHON -- cgit v1.2.3