Removed more "pending" type comments.
This commit is contained in:
parent
8da86ae078
commit
1c079630cf
4 changed files with 5 additions and 13 deletions
|
|
@ -59,7 +59,6 @@ namespace ledger {
|
|||
class commodity_t;
|
||||
class annotation_t;
|
||||
class commodity_pool_t;
|
||||
class session_t;
|
||||
|
||||
DECLARE_EXCEPTION(amount_error, std::runtime_error);
|
||||
|
||||
|
|
@ -87,6 +86,7 @@ class amount_t
|
|||
>
|
||||
#endif
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* The initialize and shutdown methods ready the amount subsystem
|
||||
* for use. Normally they are called by `ledger::initialize' and
|
||||
|
|
@ -95,9 +95,9 @@ class amount_t
|
|||
static void initialize();
|
||||
static void shutdown();
|
||||
|
||||
friend class session_t;
|
||||
|
||||
public:
|
||||
/**
|
||||
* The amount's decimal precision.
|
||||
*/
|
||||
typedef uint_least16_t precision_t;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -175,11 +175,9 @@ balance_t::value(const optional<datetime_t>& moment) const
|
|||
optional<amount_t>
|
||||
balance_t::commodity_amount(const optional<const commodity_t&>& commodity) const
|
||||
{
|
||||
// jww (2007-05-20): Needs work
|
||||
if (! commodity) {
|
||||
if (amounts.size() == 1) {
|
||||
amounts_map::const_iterator i = amounts.begin();
|
||||
return i->second;
|
||||
return amounts.begin()->second;
|
||||
}
|
||||
else if (amounts.size() > 1) {
|
||||
// Try stripping annotations before giving an error.
|
||||
|
|
|
|||
|
|
@ -85,10 +85,6 @@ public:
|
|||
|
||||
amounts_map amounts;
|
||||
|
||||
// jww (2007-05-20): Remove these two by adding access methods
|
||||
friend class value_t;
|
||||
friend class entry_base_t;
|
||||
|
||||
/**
|
||||
* Constructors. balance_t supports similar forms of construction
|
||||
* to amount_t.
|
||||
|
|
|
|||
|
|
@ -246,8 +246,6 @@ private:
|
|||
static intrusive_ptr<storage_t> false_value;
|
||||
|
||||
public:
|
||||
// jww (2007-05-03): Make these private, and make ledger::initialize
|
||||
// a member function of session_t.
|
||||
static void initialize();
|
||||
static void shutdown();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue