summaryrefslogtreecommitdiff
path: root/src/format.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/format.cc')
-rw-r--r--src/format.cc24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/format.cc b/src/format.cc
index c4683876..3bbb2b13 100644
--- a/src/format.cc
+++ b/src/format.cc
@@ -30,7 +30,7 @@
*/
#include "format.h"
-#include "account.h"
+#include "scope.h"
namespace ledger {
@@ -59,28 +59,6 @@ void format_t::element_t::dump(std::ostream& out) const
}
}
-namespace {
- string partial_account_name(account_t& account)
- {
- string name;
-
- for (account_t * acct = &account;
- acct && acct->parent;
- acct = acct->parent) {
- if (acct->has_xdata() &&
- acct->xdata().has_flags(ACCOUNT_EXT_DISPLAYED))
- break;
-
- if (name.empty())
- name = acct->name;
- else
- name = acct->name + ":" + name;
- }
-
- return name;
- }
-}
-
format_t::element_t * format_t::parse_elements(const string& fmt)
{
std::auto_ptr<element_t> result;