diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:15:32 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:15:32 -0600 |
commit | a19b541dd9eac565a2944dfc8dfadb185742ddf6 (patch) | |
tree | bcf2aceac0aa77e01f8661e96ec72b4145c767f9 /src/times.h | |
parent | 7dc1d8c169d8d73020afc91076c07cf6897866f2 (diff) | |
download | fork-ledger-a19b541dd9eac565a2944dfc8dfadb185742ddf6.tar.gz fork-ledger-a19b541dd9eac565a2944dfc8dfadb185742ddf6.tar.bz2 fork-ledger-a19b541dd9eac565a2944dfc8dfadb185742ddf6.zip |
Removed unneeded default cases
Diffstat (limited to 'src/times.h')
-rw-r--r-- | src/times.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/times.h b/src/times.h index fed47ae3..39945824 100644 --- a/src/times.h +++ b/src/times.h @@ -217,8 +217,6 @@ struct date_duration_t return date + gregorian::months(length * 3); case YEARS: return date + gregorian::years(length); - default: - assert(false); return date_t(); } } @@ -234,8 +232,6 @@ struct date_duration_t return date - gregorian::months(length * 3); case YEARS: return date - gregorian::years(length); - default: - assert(false); return date_t(); } } @@ -250,9 +246,6 @@ struct date_duration_t case MONTHS: out << "month"; break; case QUARTERS: out << "quarter"; break; case YEARS: out << "year"; break; - default: - assert(false); - break; } if (length > 1) |