From a19b541dd9eac565a2944dfc8dfadb185742ddf6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 17 Feb 2012 15:15:32 -0600 Subject: Removed unneeded default cases --- src/times.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/times.h') 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) -- cgit v1.2.3