summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-07 19:36:47 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-07 19:36:51 -0400
commit4a28e1765caff97b4c89884b6511a60d009211d8 (patch)
treec8c733b4c30250b912f9cd804338a065e99474b1 /src/amount.h
parent19a59079fa1945d56605539dcc75e79cf9549fb2 (diff)
downloadfork-ledger-4a28e1765caff97b4c89884b6511a60d009211d8.tar.gz
fork-ledger-4a28e1765caff97b4c89884b6511a60d009211d8.tar.bz2
fork-ledger-4a28e1765caff97b4c89884b6511a60d009211d8.zip
Fixed some #include ordering issues.
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/amount.h b/src/amount.h
index c19e5b96..8042dd6b 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -707,18 +707,4 @@ inline std::istream& operator>>(std::istream& in, amount_t& amt) {
} // namespace ledger
-#include "commodity.h"
-
-namespace ledger {
-
-inline commodity_t& amount_t::commodity() const {
- return has_commodity() ? *commodity_ : *current_pool->null_commodity;
-}
-
-inline bool amount_t::has_commodity() const {
- return commodity_ && commodity_ != commodity_->parent().null_commodity;
-}
-
-} // namespace ledger
-
#endif // _AMOUNT_H