diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-22 17:51:11 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-22 17:51:11 -0400 |
commit | ea75613760440604ba5bdc2ab7f89892dc28c079 (patch) | |
tree | c6cd3ec4871f9598dfe2191f0cb7e2933da8b920 /src/commodity.h | |
parent | f2e4f4c6d1f20949232ab776cb24bfbd2db2797b (diff) | |
download | fork-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.h | 29 |
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. |