From 0663ac0a2a09c9061198298ef84c87820e0a46f3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 24 Jun 2009 16:53:50 +0100 Subject: Moved commodity_quote_from_script to quotes.cc --- src/quotes.h | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) (limited to 'src/quotes.h') diff --git a/src/quotes.h b/src/quotes.h index 68c7cade..ea47d4c2 100644 --- a/src/quotes.h +++ b/src/quotes.h @@ -46,39 +46,10 @@ #ifndef _QUOTES_H #define _QUOTES_H - namespace ledger { -#if 0 -/** - * @brief Brief - * - * Long. - */ -class quotes_by_script : public noncopyable, public commodity_t::base_t::updater_t -{ - string price_db; - std::size_t pricing_leeway; - - quotes_by_script(); - -public: - quotes_by_script(path _price_db, - std::size_t _pricing_leeway) - : price_db(_price_db), pricing_leeway(_pricing_leeway) { - TRACE_CTOR(quotes_by_script, "path, std::size_t, bool&"); - } - ~quotes_by_script() throw() { - TRACE_DTOR(quotes_by_script); - } - - virtual void operator()(commodity_base_t& commodity, - const datetime_t& moment, - const datetime_t& date, - const datetime_t& last, - amount_t& price); -}; -#endif +optional +commodity_quote_from_script(const optional& exchange_commodity); } // namespace ledger -- cgit v1.2.3