mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Database: Relocated ::validateInterval to helper.cpp, it is a macro function
This commit is contained in:
parent
9e9b255a4e
commit
50dd735101
2 changed files with 0 additions and 13 deletions
|
@ -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
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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"};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue