summaryrefslogtreecommitdiff
path: root/src/times.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/times.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/times.h')
-rw-r--r--src/times.h86
1 files changed, 0 insertions, 86 deletions
diff --git a/src/times.h b/src/times.h
index c1bfb1cc..421d1462 100644
--- a/src/times.h
+++ b/src/times.h
@@ -153,20 +153,6 @@ struct date_traits_t
has_month == traits.has_month &&
has_day == traits.has_day);
}
-
-#if HAVE_BOOST_SERIALIZATION
-private:
- /** Serialization. */
-
- friend class boost::serialization::access;
-
- template<class Archive>
- void serialize(Archive& ar, const unsigned int /* version */) {
- ar & has_year;
- ar & has_month;
- ar & has_day;
- }
-#endif // HAVE_BOOST_SERIALIZATION
};
struct date_duration_t
@@ -247,19 +233,6 @@ struct date_duration_t
}
static date_t find_nearest(const date_t& date, skip_quantum_t skip);
-
-#if HAVE_BOOST_SERIALIZATION
-private:
- /** Serialization. */
-
- friend class boost::serialization::access;
-
- template<class Archive>
- void serialize(Archive& ar, const unsigned int /* version */) {
- ar & quantum;
- ar & length;
- }
-#endif // HAVE_BOOST_SERIALIZATION
};
class date_specifier_t
@@ -343,21 +316,6 @@ public:
return out.str();
}
-
-#if HAVE_BOOST_SERIALIZATION
-private:
- /** Serialization. */
-
- friend class boost::serialization::access;
-
- template<class Archive>
- void serialize(Archive& ar, const unsigned int /* version */) {
- ar & year;
- ar & month;
- ar & day;
- ar & wday;
- }
-#endif // HAVE_BOOST_SERIALIZATION
};
class date_range_t
@@ -420,20 +378,6 @@ public:
return out.str();
}
-
-#if HAVE_BOOST_SERIALIZATION
-private:
- /** Serialization. */
-
- friend class boost::serialization::access;
-
- template<class Archive>
- void serialize(Archive& ar, const unsigned int /* version */) {
- ar & range_begin;
- ar & range_end;
- ar & end_inclusive;
- }
-#endif // HAVE_BOOST_SERIALIZATION
};
class date_specifier_or_range_t
@@ -490,18 +434,6 @@ public:
return out.str();
}
-
-#if HAVE_BOOST_SERIALIZATION
-private:
- /** Serialization. */
-
- friend class boost::serialization::access;
-
- template<class Archive>
- void serialize(Archive& ar, const unsigned int /* version */) {
- ar & specifier_or_range;
- }
-#endif // HAVE_BOOST_SERIALIZATION
};
class date_interval_t : public equality_comparable<date_interval_t>
@@ -594,24 +526,6 @@ public:
date_interval_t& operator++();
void dump(std::ostream& out);
-
-#if HAVE_BOOST_SERIALIZATION
-private:
- /** Serialization. */
-
- friend class boost::serialization::access;
-
- template<class Archive>
- void serialize(Archive& ar, const unsigned int /* version */) {
- ar & range;
- ar & start;
- ar & finish;
- ar & aligned;
- ar & next;
- ar & duration;
- ar & end_of_duration;
- }
-#endif // HAVE_BOOST_SERIALIZATION
};
void times_initialize();