From d73143b6cba0b5462384bfd23b22162d8f91a337 Mon Sep 17 00:00:00 2001 From: Thomas Lauf Date: Tue, 14 Apr 2020 10:11:39 +0200 Subject: [PATCH] remove unnecessary line breaks Signed-off-by: Thomas Lauf --- src/data.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/data.cpp b/src/data.cpp index fe46c2ab..6297404d 100644 --- a/src/data.cpp +++ b/src/data.cpp @@ -361,8 +361,7 @@ std::vector getIntervalsByIds ( auto exclusions = getAllExclusions (rules, {latest.start, Datetime ()}); if (! exclusions.empty ()) { - // We're converting the latest interval into synthetic intervals so we - // need to skip it + // We're converting the latest interval into synthetic intervals so we need to skip it ++it; for (auto& interval : flatten (latest, exclusions)) @@ -567,8 +566,7 @@ std::vector addRanges ( } //////////////////////////////////////////////////////////////////////////////// -// Subtract a set of Ranges from another set of Ranges, all within a defined -// range. +// Subtract a set of Ranges from another set of Ranges, all within a defined range. std::vector subtractRanges ( const std::vector & ranges, const std::vector & subtractions) @@ -705,8 +703,7 @@ std::vector getTracked ( Interval interval = IntervalFactory::fromSerialization(line); // Since we are moving backwards, and the intervals are in sorted order, - // if the filter is after the interval, we know there will be no more - // matches + // if the filter is after the interval, we know there will be no more matches if (matchesRange (interval, filter)) { intervals.push_front (std::move (interval)); @@ -749,8 +746,7 @@ std::vector getTracked ( } } - // Assign an ID to each interval before we prune ones that do not have - // matching tags + // Assign an ID to each interval before we prune ones that do not have matching tags for (unsigned int i = 0; i < intervals.size (); ++i) { intervals[i].id = intervals.size () - i + id_skip;