summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-17 15:15:32 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-17 15:15:32 -0600
commita19b541dd9eac565a2944dfc8dfadb185742ddf6 (patch)
treebcf2aceac0aa77e01f8661e96ec72b4145c767f9 /src/times.cc
parent7dc1d8c169d8d73020afc91076c07cf6897866f2 (diff)
downloadfork-ledger-a19b541dd9eac565a2944dfc8dfadb185742ddf6.tar.gz
fork-ledger-a19b541dd9eac565a2944dfc8dfadb185742ddf6.tar.bz2
fork-ledger-a19b541dd9eac565a2944dfc8dfadb185742ddf6.zip
Removed unneeded default cases
Diffstat (limited to 'src/times.cc')
-rw-r--r--src/times.cc9
1 files changed, 0 insertions, 9 deletions
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 "<EOF>";
- 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;
}