diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-27 22:25:13 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-27 22:25:13 -0400 |
commit | 432be9e98981104062917e248f570d4d9f1d21ce (patch) | |
tree | 588c68af5bfe998f6f2b4b34128b42727821e443 /src/value.cc | |
parent | c4f4e6b5be04c5a1b61f71c271e772928b4fb4a5 (diff) | |
download | fork-ledger-432be9e98981104062917e248f570d4d9f1d21ce.tar.gz fork-ledger-432be9e98981104062917e248f570d4d9f1d21ce.tar.bz2 fork-ledger-432be9e98981104062917e248f570d4d9f1d21ce.zip |
Removed unnused parameter to value_t::print
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/value.cc b/src/value.cc index 36149bff..a6bbb2fb 100644 --- a/src/value.cc +++ b/src/value.cc @@ -1497,12 +1497,11 @@ value_t value_t::strip_annotations(const keep_details_t& what_to_keep) const return NULL_VALUE; } -void value_t::print(std::ostream& out, - const int first_width, - const int latter_width, - const bool right_justify, - const bool colorize, - const optional<string>& date_format) const +void value_t::print(std::ostream& out, + const int first_width, + const int latter_width, + const bool right_justify, + const bool colorize) const { if (first_width > 0 && (! is_amount() || as_amount().is_zero()) && @@ -1525,18 +1524,11 @@ void value_t::print(std::ostream& out, break; case DATETIME: - if (date_format) - out << format_datetime(as_datetime(), FMT_CUSTOM, - date_format->c_str()); - else - out << format_datetime(as_datetime(), FMT_WRITTEN); + out << format_datetime(as_datetime(), FMT_WRITTEN); break; case DATE: - if (date_format) - out << format_date(as_date(), FMT_CUSTOM, date_format->c_str()); - else - out << format_date(as_date(), FMT_WRITTEN); + out << format_date(as_date(), FMT_WRITTEN); break; case INTEGER: @@ -1581,7 +1573,7 @@ void value_t::print(std::ostream& out, out << ", "; value.print(out, first_width, latter_width, right_justify, - colorize, date_format); + colorize); } out << ')'; break; |