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.cc | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/times.cc') diff --git a/src/times.cc b/src/times.cc index 4b627c75..0384edf6 100644 --- a/src/times.cc +++ b/src/times.cc @@ -544,9 +544,6 @@ class date_parser_t case TOK_WEEKS: return "weeks"; case TOK_DAYS: return "days"; case END_REACHED: return ""; - default: - assert(false); - return empty_string; } return out.str(); @@ -593,9 +590,6 @@ class date_parser_t case TOK_WEEKS: out << "TOK_WEEKS"; break; case TOK_DAYS: out << "TOK_DAYS"; break; case END_REACHED: out << "END_REACHED"; break; - default: - assert(false); - break; } } @@ -1254,9 +1248,6 @@ date_t date_duration_t::find_nearest(const date_t& date, skip_quantum_t skip) case date_duration_t::DAYS: result = date; break; - default: - assert(false); - break; } return result; } -- cgit v1.2.3