From 50dd7351018e2d449b3a6eb6856bace09ef44f97 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 1 Jul 2016 08:29:12 -0400 Subject: [PATCH] Database: Relocated ::validateInterval to helper.cpp, it is a macro function --- src/Database.cpp | 12 ------------ src/Database.h | 1 - 2 files changed, 13 deletions(-) diff --git a/src/Database.cpp b/src/Database.cpp index 0a3b4114..d1d41cbd 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -96,9 +96,6 @@ std::vector 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 -{ -} - -//////////////////////////////////////////////////////////////////////////////// diff --git a/src/Database.h b/src/Database.h index 04e6eb17..704dff28 100644 --- a/src/Database.h +++ b/src/Database.h @@ -58,7 +58,6 @@ private: unsigned int getDatafile (int, int); std::vector segmentRange (const Range&); void initializeDatafiles (); - void validateAddition (const Interval&) const; private: std::string _location {"~/.timewarrior/data"};