summaryrefslogtreecommitdiff
path: root/binary.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-02-15 20:10:49 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:21 -0400
commita8012940f4d15a2e1d8fbdac02a631dae6231b1e (patch)
treec48a2bf19a954c8103a02e26f9a1a490b8095268 /binary.cc
parent20f100cd5a6bd1a972b7905c4fb547b8429676c5 (diff)
downloadfork-ledger-a8012940f4d15a2e1d8fbdac02a631dae6231b1e.tar.gz
fork-ledger-a8012940f4d15a2e1d8fbdac02a631dae6231b1e.tar.bz2
fork-ledger-a8012940f4d15a2e1d8fbdac02a631dae6231b1e.zip
Removed Python integration support.
Diffstat (limited to 'binary.cc')
-rw-r--r--binary.cc27
1 files changed, 0 insertions, 27 deletions
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 <boost/python.hpp>
-
-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<parser_t> > ("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