summaryrefslogtreecommitdiff
path: root/src/iterators.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-07 17:45:48 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-07 17:45:48 -0400
commit589eabd8e60636b7b250b75a5a2966034e8ba911 (patch)
treef9db5c14df14dbc2db3ba0c96dff34c8e670a311 /src/iterators.h
parent9380d73646bcd79c4f24581b2212f684cea70138 (diff)
downloadfork-ledger-589eabd8e60636b7b250b75a5a2966034e8ba911.tar.gz
fork-ledger-589eabd8e60636b7b250b75a5a2966034e8ba911.tar.bz2
fork-ledger-589eabd8e60636b7b250b75a5a2966034e8ba911.zip
Threw away the "multiple parser" infrastructure.
Diffstat (limited to 'src/iterators.h')
-rw-r--r--src/iterators.h42
1 files changed, 4 insertions, 38 deletions
diff --git a/src/iterators.h b/src/iterators.h
index ded403d9..699dd891 100644
--- a/src/iterators.h
+++ b/src/iterators.h
@@ -110,23 +110,16 @@ public:
*/
class entries_iterator : public noncopyable
{
- ptr_list<journal_t>::iterator journals_i;
- ptr_list<journal_t>::iterator journals_end;
-
- bool journals_uninitialized;
-
- entries_list::iterator entries_i;
- entries_list::iterator entries_end;
+ entries_list::iterator entries_i;
+ entries_list::iterator entries_end;
bool entries_uninitialized;
public:
- entries_iterator()
- : journals_uninitialized(true), entries_uninitialized(true) {
+ entries_iterator() : entries_uninitialized(true) {
TRACE_CTOR(entries_iterator, "");
}
- entries_iterator(session_t& session)
- : journals_uninitialized(true), entries_uninitialized(true) {
+ entries_iterator(session_t& session) : entries_uninitialized(true) {
TRACE_CTOR(entries_iterator, "session_t&");
reset(session);
}
@@ -250,33 +243,6 @@ public:
virtual account_t * operator()();
};
-/**
- * @brief Brief
- *
- * Long.
- */
-class journals_iterator : public noncopyable
-{
- ptr_list<journal_t>::iterator journals_i;
- ptr_list<journal_t>::iterator journals_end;
-
-public:
- journals_iterator() {
- TRACE_CTOR(journals_iterator, "");
- }
- journals_iterator(session_t& session) {
- TRACE_CTOR(journals_iterator, "session_t&");
- reset(session);
- }
- virtual ~journals_iterator() throw() {
- TRACE_DTOR(journals_iterator);
- }
-
- void reset(session_t& session);
-
- virtual journal_t * operator()();
-};
-
} // namespace ledger
#endif // _ITERATORS_H