From 036200e959db6a3b9fe0d02f9eec3eb131983ab4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 5 Mar 2012 05:53:36 -0600 Subject: Make copying of format_t objects memory-safe --- src/format.cc | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/format.cc') diff --git a/src/format.cc b/src/format.cc index f16b4ba9..9824d5f7 100644 --- a/src/format.cc +++ b/src/format.cc @@ -40,16 +40,6 @@ namespace ledger { format_t::elision_style_t format_t::default_style = TRUNCATE_TRAILING; bool format_t::default_style_changed = false; -format_t::element_t::element_t(const element_t& elem) - : supports_flags<>(), - type(elem.type), - min_width(elem.min_width), - max_width(elem.max_width), - data(elem.data) -{ - TRACE_CTOR(element_t, "copy"); -} - void format_t::element_t::dump(std::ostream& out) const { out << "Element: "; @@ -426,7 +416,6 @@ string format_t::real_calc(scope_t& scope) case element_t::EXPR: { expr_t& expr(boost::get(elem->data)); try { - expr.compile(scope); value_t value; -- cgit v1.2.3