summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-05 17:50:17 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-05 17:50:17 -0600
commit97dbf379d5e44c80c748483a688502b1cec8f075 (patch)
tree262c54e08cd86cbcdcf9f87de261fc1c56305980 /src/commodity.h
parentff9cf572fe5054f2e5c5d7ab4e68d63011e4a38a (diff)
downloadfork-ledger-97dbf379d5e44c80c748483a688502b1cec8f075.tar.gz
fork-ledger-97dbf379d5e44c80c748483a688502b1cec8f075.tar.bz2
fork-ledger-97dbf379d5e44c80c748483a688502b1cec8f075.zip
Rewrote the way annotated commodities are managed
The new scheme should be much more efficient, and allows for future growth of what annotations may appear on a commodity.
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/commodity.h b/src/commodity.h
index 524daaab..7934f1ad 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -164,7 +164,6 @@ protected:
commodity_pool_t * parent_;
optional<string> qualified_symbol;
- optional<string> mapping_key_;
bool annotated;
explicit commodity_t(commodity_pool_t * _parent,
@@ -218,13 +217,6 @@ public:
return qualified_symbol ? *qualified_symbol : base_symbol();
}
- string mapping_key() const {
- if (mapping_key_)
- return *mapping_key_;
- else
- return base_symbol();
- }
-
optional<std::size_t> graph_index() const {;
return base->graph_index;
}
@@ -325,7 +317,6 @@ private:
ar & base;
ar & parent_;
ar & qualified_symbol;
- ar & mapping_key_;
ar & annotated;
}
#endif // HAVE_BOOST_SERIALIZATION