summaryrefslogtreecommitdiff
path: root/src/post.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-27 02:35:51 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-27 02:35:51 -0400
commit06365aac05bb77deb7ef2e6f82d7b6806ee77f92 (patch)
treea213e1f2fd199fe6e7f26549074920757fd17d6f /src/post.cc
parentfbb0d2583173073e11976c7cd7e570d4829f0621 (diff)
downloadfork-ledger-06365aac05bb77deb7ef2e6f82d7b6806ee77f92.tar.gz
fork-ledger-06365aac05bb77deb7ef2e6f82d7b6806ee77f92.tar.bz2
fork-ledger-06365aac05bb77deb7ef2e6f82d7b6806ee77f92.zip
Fixed the way item state is parsed and managed
Diffstat (limited to 'src/post.cc')
-rw-r--r--src/post.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/post.cc b/src/post.cc
index 8293bfe4..5c0d98e7 100644
--- a/src/post.cc
+++ b/src/post.cc
@@ -102,17 +102,6 @@ optional<date_t> post_t::effective_date() const
return date;
}
-item_t::state_t post_t::state() const
-{
- if (xact) {
- state_t xact_state = xact->state();
- if ((_state == UNCLEARED && xact_state != UNCLEARED) ||
- (_state == PENDING && xact_state == CLEARED))
- return xact_state;
- }
- return _state;
-}
-
namespace {
value_t get_this(post_t& post) {
return value_t(static_cast<scope_t *>(&post));