mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Interval: ::dump is not needed when there is ::serialize and ::json
This commit is contained in:
parent
e3f742832c
commit
b69f6b2106
3 changed files with 2 additions and 21 deletions
|
@ -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 ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -57,7 +57,6 @@ public:
|
|||
|
||||
std::string serialize () const;
|
||||
std::string json () const;
|
||||
std::string dump () const;
|
||||
|
||||
private:
|
||||
Daterange _range {};
|
||||
|
|
|
@ -121,9 +121,9 @@ std::string Timeline::dump () const
|
|||
{
|
||||
std::stringstream out;
|
||||
|
||||
out << "Timeline _range " << _range.start ().toISO () << " - " << _range.end ().toISO () << "\n";
|
||||
out << "Timeline _range " << _range.dump () << "\n";
|
||||
for (auto& i : _inclusions)
|
||||
out << " " << i.dump ();
|
||||
out << " " << i.json ();
|
||||
for (auto& e : _exclusions)
|
||||
out << " " << e.dump ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue