Drop TimePeriod#Merge()

refs #7398
This commit is contained in:
Alexander A. Klimov 2020-02-26 15:45:49 +01:00
parent f6f5fd5dda
commit 3164a45f5f
2 changed files with 0 additions and 19 deletions

View File

@ -201,23 +201,6 @@ void TimePeriod::PurgeSegments(double end)
SetSegments(newSegments);
}
void TimePeriod::Merge(const TimePeriod::Ptr& timeperiod, bool include)
{
Log(LogDebug, "TimePeriod")
<< "Merge TimePeriod '" << GetName() << "' with '" << timeperiod->GetName() << "' "
<< "Method: " << (include ? "include" : "exclude");
Array::Ptr segments = timeperiod->GetSegments();
if (segments) {
ObjectLock dlock(segments);
ObjectLock ilock(this);
for (const Dictionary::Ptr& segment : segments) {
include ? AddSegment(segment) : RemoveSegment(segment);
}
}
}
void TimePeriod::UpdateRegion(double begin, double end, bool clearExisting)
{
if (clearExisting) {

View File

@ -37,8 +37,6 @@ private:
void RemoveSegment(const Dictionary::Ptr& segment);
void PurgeSegments(double end);
void Merge(const TimePeriod::Ptr& timeperiod, bool include = true);
void Dump();
static void UpdateTimerHandler();