Removed interval_t::advanced, which was unused

This commit is contained in:
John Wiegley 2009-02-14 04:17:46 -04:00
parent f15ae10a52
commit e50abb5645
2 changed files with 3 additions and 9 deletions

View file

@ -126,9 +126,6 @@ date_t interval_t::first(const optional<date_t>& moment) const
date_t quant(begin);
if (! advanced)
advanced = true;
if (moment && *moment > quant) {
// Find an efficient starting point for the upcoming while loop.
// We want a date early enough that the range will be correct, but

View file

@ -131,13 +131,11 @@ struct interval_t
date_t begin;
date_t end;
mutable bool advanced;
interval_t(int _days = 0, int _months = 0, int _years = 0,
const date_t& _begin = date_t(),
const date_t& _end = date_t())
: years(_years), months(_months), days(_days),
begin(_begin), end(_end), advanced(false) {
begin(_begin), end(_end) {
TRACE_CTOR(interval_t, "int, int, int, const date_t&, const date_t&");
}
interval_t(const interval_t& other)
@ -145,12 +143,11 @@ struct interval_t
months(other.months),
days(other.days),
begin(other.begin),
end(other.end),
advanced(other.advanced) {
end(other.end) {
TRACE_CTOR(interval_t, "copy");
}
interval_t(const string& desc)
: years(0), months(0), days(0), begin(), end(), advanced(false) {
: years(0), months(0), days(0), begin(), end() {
TRACE_CTOR(interval_t, "const string&");
std::istringstream stream(desc);
parse(stream);