summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2015-02-15 08:39:58 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2015-02-18 21:50:34 +0100
commitd5e1308d07e9a7d9da33aed6f7f617b2209cba40 (patch)
treeef98ba33a55d64aee61d29a3f25232d20dbb2d20 /src/commodity.h
parentf59abd4c765b08cbd5f18ec851b1d78a766a1c93 (diff)
downloadfork-ledger-d5e1308d07e9a7d9da33aed6f7f617b2209cba40.tar.gz
fork-ledger-d5e1308d07e9a7d9da33aed6f7f617b2209cba40.tar.bz2
fork-ledger-d5e1308d07e9a7d9da33aed6f7f617b2209cba40.zip
[ledger] Remove --cache option
and all boost serialisation related code.
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/commodity.h b/src/commodity.h
index 3d1ddf04..53ed3a9f 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -68,19 +68,6 @@ struct price_point_t
bool operator==(const price_point_t& other) const {
return when == other.when && price == other.price;
}
-
-#if HAVE_BOOST_SERIALIZATION
-private:
- /** Serialization. */
-
- friend class boost::serialization::access;
-
- template<class Archive>
- void serialize(Archive& ar, const unsigned int /* version */) {
- ar & when;
- ar & price;
- }
-#endif // HAVE_BOOST_SERIALIZATION
};
class commodity_t
@@ -138,28 +125,6 @@ protected:
virtual ~base_t() {
TRACE_DTOR(commodity_t::base_t);
}
-
-#if HAVE_BOOST_SERIALIZATION
- private:
- base_t() {
- TRACE_CTOR(base_t, "");
- }
-
- /** Serialization. */
-
- friend class boost::serialization::access;
-
- template<class Archive>
- void serialize(Archive& ar, const unsigned int /* version */) {
- ar & boost::serialization::base_object<supports_flags<uint_least16_t> >(*this);
- ar & symbol;
- ar & precision;
- ar & name;
- ar & note;
- ar & smaller;
- ar & larger;
- }
-#endif // HAVE_BOOST_SERIALIZATION
};
shared_ptr<base_t> base;
@@ -315,32 +280,6 @@ public:
struct compare_by_commodity {
bool operator()(const amount_t * left, const amount_t * right) const;
};
-
-#if HAVE_BOOST_SERIALIZATION
-private:
- supports_flags<uint_least16_t> temp_flags;
-
-protected:
- explicit commodity_t()
- : delegates_flags<uint_least16_t>(temp_flags), parent_(NULL),
- annotated(false) {
- TRACE_CTOR(commodity_t, "");
- }
-
-private:
- /** Serialization. */
-
- friend class boost::serialization::access;
-
- template<class Archive>
- void serialize(Archive& ar, const unsigned int /* version */) {
- ar & boost::serialization::base_object<delegates_flags<uint_least16_t> >(*this);
- ar & base;
- ar & parent_;
- ar & qualified_symbol;
- ar & annotated;
- }
-#endif // HAVE_BOOST_SERIALIZATION
};
inline std::ostream& operator<<(std::ostream& out, const commodity_t& comm) {