summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-10 20:07:24 -1000
committerJohn Wiegley <johnw@newartisans.com>2012-02-17 15:09:32 -0600
commite7ff3945d5f670a10a6f36acb288471a5dbeb5c8 (patch)
tree7f11b84936cfe699d941adfa5929efb385b66176 /src
parented30c9c82d3d1d57edc3fe0ea046964785b2b1c1 (diff)
downloadfork-ledger-e7ff3945d5f670a10a6f36acb288471a5dbeb5c8.tar.gz
fork-ledger-e7ff3945d5f670a10a6f36acb288471a5dbeb5c8.tar.bz2
fork-ledger-e7ff3945d5f670a10a6f36acb288471a5dbeb5c8.zip
#if 0'd some unused Python bridge code
Diffstat (limited to 'src')
-rw-r--r--src/py_amount.cc2
-rw-r--r--src/py_balance.cc2
-rw-r--r--src/py_format.cc4
-rw-r--r--src/py_item.cc2
-rw-r--r--src/py_journal.cc4
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)
{