Interval: ::dump is not needed when there is ::serialize and ::json

This commit is contained in:
Paul Beckingham 2016-04-21 21:23:12 -04:00
parent e3f742832c
commit b69f6b2106
3 changed files with 2 additions and 21 deletions

View file

@ -225,21 +225,3 @@ std::string Interval::json () const
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
std::string Interval::dump () const
{
std::stringstream out;
out << "Interval _start '"
<< _range.start ().toEpoch ()
<< "' _end '"
<< _range.end ().toEpoch ()
<< "' _tags";
for (auto& tag : _tags)
out << " '" << tag << "'";
out << "\n";
return out.str ();
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -57,7 +57,6 @@ public:
std::string serialize () const; std::string serialize () const;
std::string json () const; std::string json () const;
std::string dump () const;
private: private:
Daterange _range {}; Daterange _range {};

View file

@ -121,9 +121,9 @@ std::string Timeline::dump () const
{ {
std::stringstream out; std::stringstream out;
out << "Timeline _range " << _range.start ().toISO () << " - " << _range.end ().toISO () << "\n"; out << "Timeline _range " << _range.dump () << "\n";
for (auto& i : _inclusions) for (auto& i : _inclusions)
out << " " << i.dump (); out << " " << i.json ();
for (auto& e : _exclusions) for (auto& e : _exclusions)
out << " " << e.dump (); out << " " << e.dump ();