Database: Relocated ::validateInterval to helper.cpp, it is a macro function

This commit is contained in:
Paul Beckingham 2016-07-01 08:29:12 -04:00
parent 9e9b255a4e
commit 50dd735101
2 changed files with 0 additions and 13 deletions

View file

@ -96,9 +96,6 @@ std::vector <std::string> Database::allLines ()
////////////////////////////////////////////////////////////////////////////////
void Database::addInterval (const Interval& interval)
{
// TODO Need to verify that interval.tags do not overlap with stored data.
// Unless the tags that overlap are allowed to overlap.
validateAddition (interval);
undoTxnStart ();
auto intervalRange = interval.range;
@ -320,12 +317,3 @@ void Database::initializeDatafiles ()
}
////////////////////////////////////////////////////////////////////////////////
// Responsible for checking that the proposed interval "fits" with existing data
// and does not overlap tags unless configured to.
//
// The method either silently succeeds or throws an error.
void Database::validateAddition (const Interval& interval) const
{
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -58,7 +58,6 @@ private:
unsigned int getDatafile (int, int);
std::vector <Range> segmentRange (const Range&);
void initializeDatafiles ();
void validateAddition (const Interval&) const;
private:
std::string _location {"~/.timewarrior/data"};