summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-12 03:30:41 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-12 03:30:41 -0400
commitc8cd2c468e202f07af187590dcdc07935b6918f6 (patch)
tree397504912c30945f3bc607778d3471c1a41ccdd7 /src/xact.cc
parentbb243e2c5e68a04d0da4c8c20a74b5b8acf7ecdb (diff)
downloadfork-ledger-c8cd2c468e202f07af187590dcdc07935b6918f6.tar.gz
fork-ledger-c8cd2c468e202f07af187590dcdc07935b6918f6.tar.bz2
fork-ledger-c8cd2c468e202f07af187590dcdc07935b6918f6.zip
Re-enabled some code, and removed a bunch of deadwood.
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 4e5004a2..3106f1a3 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -112,17 +112,6 @@ namespace {
}
}
-#if 0
- value_t get_price(xact_t& xact) {
- if (xact.has_xdata() &&
- xact.xdata().has_flags(XACT_EXT_COMPOUND)) {
- return xact.xdata().value;
- } else {
- return xact.amount;
- }
- }
-#endif
-
value_t get_total(xact_t& xact) {
if (xact.xdata_)
return xact.xdata_->total;
@@ -196,10 +185,6 @@ expr_t::ptr_op_t xact_t::lookup(const string& name)
case 'p':
if (name == "payee")
return WRAP_FUNCTOR(get_wrapper<&get_payee>);
-#if 0
- else if (name == "price")
- return WRAP_FUNCTOR(get_wrapper<&get_price>);
-#endif
break;
case 't':