summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/commodity.cc')
-rw-r--r--src/commodity.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/commodity.cc b/src/commodity.cc
index 94c35cc4..ef705065 100644
--- a/src/commodity.cc
+++ b/src/commodity.cc
@@ -763,33 +763,6 @@ void annotated_commodity_t::write_annotations(std::ostream& out,
out << " (" << *info.tag << ')';
}
-void commodity_t::read_xml(std::istream& in)
-{
-}
-
-void commodity_t::write_xml(std::ostream& out, const int depth) const
-{
- out << xml_str("<commodity flags=\"", depth);
- if (! (flags() & COMMODITY_STYLE_SUFFIXED)) out << 'P';
- if (flags() & COMMODITY_STYLE_SEPARATED) out << 'S';
- if (flags() & COMMODITY_STYLE_THOUSANDS) out << 'T';
- if (flags() & COMMODITY_STYLE_EUROPEAN) out << 'E';
- out << "\">\n";
-
- out << xml_str("<symbol>", depth + 1) << symbol() << "</symbol>\n";
-
-#if 0
- // jww (2009-02-01): If this is an annotated commodity, more has to happen
- if (price) {
- out << xml_str("<price>", depth + 1);
- price->write_xml(out, depth + 2);
- out << xml_str("</price>\n", depth + 1);
- }
-#endif
-
- out << xml_str("</commodity>\n", depth);
-}
-
bool compare_amount_commodities::operator()(const amount_t * left,
const amount_t * right) const
{