summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-22 17:51:11 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-22 17:51:11 -0400
commitea75613760440604ba5bdc2ab7f89892dc28c079 (patch)
treec6cd3ec4871f9598dfe2191f0cb7e2933da8b920 /src/commodity.h
parentf2e4f4c6d1f20949232ab776cb24bfbd2db2797b (diff)
downloadfork-ledger-ea75613760440604ba5bdc2ab7f89892dc28c079.tar.gz
fork-ledger-ea75613760440604ba5bdc2ab7f89892dc28c079.tar.bz2
fork-ledger-ea75613760440604ba5bdc2ab7f89892dc28c079.zip
--exchange option now accepts multiple commodities
They must be separated by a comma, and all whitespace is ignored.
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/commodity.h b/src/commodity.h
index 4e57ec6f..2962152a 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -126,20 +126,9 @@ public:
, const int indent = 0
#endif
) const;
- optional<price_point_t>
- find_price(const commodity_t& source,
- const std::vector<commodity_t *>& commodities,
- const optional<datetime_t>& moment = none,
- const optional<datetime_t>& oldest = none
-#if defined(DEBUG_ON)
- , const int indent = 0
-#endif
- ) const;
optional<history_t&>
history(const optional<commodity_t&>& commodity = none);
- optional<history_t&>
- history(const std::vector<commodity_t *>& commodities);
};
#define COMMODITY_STYLE_DEFAULTS 0x000
@@ -283,7 +272,6 @@ public:
}
optional<history_t&> history(const optional<commodity_t&>& commodity);
- optional<history_t&> history(const std::vector<commodity_t *>& commodities);
public:
// These methods provide a transparent pass-through to the underlying
@@ -324,23 +312,6 @@ public:
return none;
}
- optional<price_point_t>
- find_price(const std::vector<commodity_t *>& commodities,
- const optional<datetime_t>& moment = none,
- const optional<datetime_t>& oldest = none
-#if defined(DEBUG_ON)
- , const int indent = 0
-#endif
- ) const {
- if (base->varied_history)
- return base->varied_history->find_price(*this, commodities, moment, oldest
-#if defined(DEBUG_ON)
- , indent
-#endif
- );
- return none;
- }
-
// Methods to exchange one commodity for another, while recording the
// factored price.