From 2ce7ae376c1e3de0b952d6bb8125f68fc99813d0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 3 Feb 2009 18:46:19 -0400 Subject: Removed used of src_idx. --- src/emacs.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/emacs.cc') diff --git a/src/emacs.cc b/src/emacs.cc index b63375b2..714302c5 100644 --- a/src/emacs.cc +++ b/src/emacs.cc @@ -36,14 +36,8 @@ namespace ledger { void format_emacs_xacts::write_entry(entry_t& entry) { - int idx = entry.src_idx; - foreach (const path& path, entry.journal->sources) - if (! idx--) { - out << "\"" << path << "\" "; - break; - } - - out << (static_cast(entry.beg_line) + 1) << " "; + out << "\"" << entry.pathname << "\" " + << (static_cast(entry.beg_line) + 1) << " "; tm when = gregorian::to_tm(*entry.date()); std::time_t date = std::mktime(&when); // jww (2008-04-20): Is this GMT or local? -- cgit v1.2.3