summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-16 04:02:56 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-16 04:02:56 -0400
commitd0ea10f9a709de8f67b4c4eb1e763ab32309957f (patch)
tree4e968c574a1c84bbf23493b57bfe61e4ac852cf7 /src/textual.cc
parent63080a727540e5168d6eb230e86d06ad390dc6c5 (diff)
parentf1523b5464924bf9d9987fce0cb3dbe4acda5a4b (diff)
downloadfork-ledger-d0ea10f9a709de8f67b4c4eb1e763ab32309957f.tar.gz
fork-ledger-d0ea10f9a709de8f67b4c4eb1e763ab32309957f.tar.bz2
fork-ledger-d0ea10f9a709de8f67b4c4eb1e763ab32309957f.zip
Rewrote the interval_t class
The purpose of this rewrite is to greatly simplify the code that walks through time periods, toward opening up the possibility in future of allowing exclusions and logically combined periods, such as "weekly except weekends". The new code is much simpler to use, as well as simpler internally, and yet is more robust at the same time.
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 8f7388a2..0c92f7bb 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -592,8 +592,6 @@ void instance_t::period_xact_directive(char * line)
try {
std::auto_ptr<period_xact_t> pe(new period_xact_t(skip_ws(line + 1)));
- if (! pe->period)
- throw_(parse_error, _("Parsing time period '%1'") << line);
reveal_context = false;