summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
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