diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2015-02-15 08:39:58 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2015-02-18 21:50:34 +0100 |
commit | d5e1308d07e9a7d9da33aed6f7f617b2209cba40 (patch) | |
tree | ef98ba33a55d64aee61d29a3f25232d20dbb2d20 /src/annotate.h | |
parent | f59abd4c765b08cbd5f18ec851b1d78a766a1c93 (diff) | |
download | fork-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/annotate.h')
-rw-r--r-- | src/annotate.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/annotate.h b/src/annotate.h index c0fbcd3d..c2b2ec9d 100644 --- a/src/annotate.h +++ b/src/annotate.h @@ -107,21 +107,6 @@ struct annotation_t : public supports_flags<>, assert(*this); return true; } - -#if HAVE_BOOST_SERIALIZATION -private: - /** Serialization. */ - - friend class boost::serialization::access; - - template<class Archive> - void serialize(Archive& ar, const unsigned int /* version */) { - ar & boost::serialization::base_object<supports_flags<> >(*this); - ar & price; - ar & date; - ar & tag; - } -#endif // HAVE_BOOST_SERIALIZATION }; void put_annotation(property_tree::ptree& pt, const annotation_t& details); @@ -162,21 +147,6 @@ struct keep_details_t return keep_price || keep_date || keep_tag; } bool keep_any(const commodity_t& comm) const; - -#if HAVE_BOOST_SERIALIZATION -private: - /** Serialization. */ - - friend class boost::serialization::access; - - template<class Archive> - void serialize(Archive& ar, const unsigned int /* version */) { - ar & keep_price; - ar & keep_date; - ar & keep_tag; - ar & only_actuals; - } -#endif // HAVE_BOOST_SERIALIZATION }; inline std::ostream& operator<<(std::ostream& out, @@ -250,24 +220,6 @@ public: virtual void write_annotations(std::ostream& out, bool no_computed_annotations = false) const; - -#if HAVE_BOOST_SERIALIZATION -private: - explicit annotated_commodity_t() : ptr(NULL) { - TRACE_CTOR(annotated_commodity_t, ""); - } - - /** Serialization. */ - - friend class boost::serialization::access; - - template<class Archive> - void serialize(Archive& ar, const unsigned int /* version */) { - ar & boost::serialization::base_object<commodity_t>(*this); - ar & ptr; - ar & details; - } -#endif // HAVE_BOOST_SERIALIZATION }; inline annotated_commodity_t& |