summaryrefslogtreecommitdiff
path: root/format.h
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
commitce3491c99f089874725999ca6d8b1fb6a15c9e5e (patch)
treec48a2bf19a954c8103a02e26f9a1a490b8095268 /format.h
parent2eafddc91b8d7f0b7bdfd991acdc9e0b2295e304 (diff)
downloadfork-ledger-ce3491c99f089874725999ca6d8b1fb6a15c9e5e.tar.gz
fork-ledger-ce3491c99f089874725999ca6d8b1fb6a15c9e5e.tar.bz2
fork-ledger-ce3491c99f089874725999ca6d8b1fb6a15c9e5e.zip
Removed Python integration support.
Diffstat (limited to 'format.h')
-rw-r--r--format.h41
1 files changed, 2 insertions, 39 deletions
diff --git a/format.h b/format.h
index 3d2439bf..b1b77fd8 100644
--- a/format.h
+++ b/format.h
@@ -38,8 +38,7 @@ struct element_t
NOTE,
OPT_NOTE,
SPACER,
- DEPTH_SPACER,
- INTERP_FUNC
+ DEPTH_SPACER
};
bool align_left;
@@ -189,40 +188,4 @@ class format_equity : public item_handler<account_t>
} // namespace ledger
-#ifdef USE_BOOST_PYTHON
-
-#include "pyfstream.h"
-
-template <typename T, typename U, typename V = int, typename W = int>
-struct pystream_handler_wrap : public ledger::item_handler<U>
-{
- PyFileObject * file;
- pyofstream * output;
-
- T handler;
-
- pystream_handler_wrap(PyObject * file_)
- : file((PyFileObject *)file_), output(new pyofstream(file)),
- handler(*output) {}
- pystream_handler_wrap(PyObject * file_, const V& arg)
- : file((PyFileObject *)file_), output(new pyofstream(file)),
- handler(*output, arg) {}
- pystream_handler_wrap(PyObject * file_, const V& arg1, const W& arg2)
- : file((PyFileObject *)file_), output(new pyofstream(file)),
- handler(*output, arg1, arg2) {}
-
- virtual ~pystream_handler_wrap() {
- delete output;
- }
-
- virtual void flush() {
- handler.flush();
- }
- virtual void operator()(U& item) {
- handler.operator()(item);
- }
-};
-
-#endif // USE_BOOST_PYTHON
-
-#endif // _REPORT_H
+#endif // _FORMAT_H