summaryrefslogtreecommitdiff
path: root/qif.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-02 09:19:42 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 05:48:43 -0400
commite6efa8421f11a17f2200be252c7d4c0023c04fff (patch)
tree442c6519967f99d901e6bd3cade9d1c262709dde /qif.cc
parentf781dd566803a7cafb9bf079b15dd0453a103de4 (diff)
downloadfork-ledger-e6efa8421f11a17f2200be252c7d4c0023c04fff.tar.gz
fork-ledger-e6efa8421f11a17f2200be252c7d4c0023c04fff.tar.bz2
fork-ledger-e6efa8421f11a17f2200be252c7d4c0023c04fff.zip
Removed --disable-emacs.
Diffstat (limited to 'qif.cc')
-rw-r--r--qif.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/qif.cc b/qif.cc
index 9bce9f04..629ce289 100644
--- a/qif.cc
+++ b/qif.cc
@@ -63,7 +63,6 @@ unsigned int qif_parser_t::parse(std::istream& in,
src_idx = journal->sources.size() - 1;
linenum = 1;
-#ifdef USE_EDITOR
istream_pos_type beg_pos = 0;
unsigned long beg_line = 0;
@@ -72,9 +71,6 @@ unsigned int qif_parser_t::parse(std::istream& in,
beg_pos = in.tellg(); \
beg_line = linenum; \
}
-#else
-#define SET_BEG_POS_AND_LINE()
-#endif
while (in.good() && ! in.eof()) {
char c;
@@ -221,13 +217,11 @@ unsigned int qif_parser_t::parse(std::istream& in,
}
if (journal->add_entry(entry.get())) {
-#ifdef USE_EDITOR
entry->src_idx = src_idx;
entry->beg_pos = beg_pos;
entry->beg_line = beg_line;
entry->end_pos = in.tellg();
entry->end_line = linenum;
-#endif
entry.release();
count++;
}
@@ -240,9 +234,7 @@ unsigned int qif_parser_t::parse(std::istream& in,
saw_splits = false;
saw_category = false;
total = NULL;
-#ifdef USE_EDITOR
beg_line = 0;
-#endif
break;
}