diff options
-rw-r--r-- | src/py_amount.cc | 2 | ||||
-rw-r--r-- | src/py_balance.cc | 2 | ||||
-rw-r--r-- | src/py_format.cc | 4 | ||||
-rw-r--r-- | src/py_item.cc | 2 | ||||
-rw-r--r-- | src/py_journal.cc | 4 |
5 files changed, 14 insertions, 0 deletions
diff --git a/src/py_amount.cc b/src/py_amount.cc index 0b9e0410..9ce4a02d 100644 --- a/src/py_amount.cc +++ b/src/py_amount.cc @@ -77,6 +77,7 @@ namespace { amount.parse(str, flags); } +#if 0 void py_print(amount_t& amount, object out) { if (PyFile_Check(out.ptr())) { pyofstream outstr(reinterpret_cast<PyFileObject *>(out.ptr())); @@ -86,6 +87,7 @@ namespace { _("Argument to amount.print_(file) is not a file object")); } } +#endif annotation_t& py_amount_annotation(amount_t& amount) { return amount.annotation(); diff --git a/src/py_balance.cc b/src/py_balance.cc index 540b3221..e86217b5 100644 --- a/src/py_balance.cc +++ b/src/py_balance.cc @@ -68,6 +68,7 @@ namespace { return balance.commodity_amount(commodity); } +#if 0 void py_print(balance_t& balance, object out) { if (PyFile_Check(out.ptr())) { pyofstream outstr(reinterpret_cast<PyFileObject *>(out.ptr())); @@ -77,6 +78,7 @@ namespace { _("Argument to balance.print_(file) is not a file object")); } } +#endif long balance_len(balance_t& bal) { return bal.amounts.size(); diff --git a/src/py_format.cc b/src/py_format.cc index ce7052ac..fc2103c7 100644 --- a/src/py_format.cc +++ b/src/py_format.cc @@ -37,12 +37,14 @@ namespace ledger { using namespace boost::python; +#if 0 #define EXC_TRANSLATOR(type) \ void exc_translate_ ## type(const type& err) { \ PyErr_SetString(PyExc_ArithmeticError, err.what()); \ } //EXC_TRANSLATOR(format_error) +#endif void export_format() { @@ -55,10 +57,12 @@ void export_format() //implicitly_convertible<string, amount_t>(); +#if 0 #define EXC_TRANSLATE(type) \ register_exception_translator<type>(&exc_translate_ ## type); //EXC_TRANSLATE(format_error); +#endif } } // namespace ledger diff --git a/src/py_item.cc b/src/py_item.cc index e37228fe..51d9e50c 100644 --- a/src/py_item.cc +++ b/src/py_item.cc @@ -66,12 +66,14 @@ namespace { } // unnamed namespace +#if 0 #define EXC_TRANSLATOR(type) \ void exc_translate_ ## type(const type& err) { \ PyErr_SetString(PyExc_ArithmeticError, err.what()); \ } //EXC_TRANSLATOR(item_error) +#endif void export_item() { diff --git a/src/py_journal.cc b/src/py_journal.cc index cb629f62..5eac9eb0 100644 --- a/src/py_journal.cc +++ b/src/py_journal.cc @@ -48,15 +48,18 @@ using namespace boost::python; namespace { +#if 0 account_t& py_account_master(journal_t& journal) { return *journal.master; } +#endif long xacts_len(journal_t& journal) { return journal.xacts.size(); } +#if 0 xact_t& xacts_getitem(journal_t& journal, long i) { static long last_index = 0; @@ -119,6 +122,7 @@ namespace { return *(*elem).second; } +#endif account_t * py_find_account_1(journal_t& journal, const string& name) { |