From f2065f93a55be54fa4058bf16ad19e2b24bfc339 Mon Sep 17 00:00:00 2001 From: Patrick Brosi Date: Thu, 17 Oct 2024 15:57:24 +0200 Subject: [PATCH] remove unused variable, hopefully fix a non-deterministic test --- src/pfaedle/tests/TestMain.cpp | 2 +- src/shapevl/Collector.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pfaedle/tests/TestMain.cpp b/src/pfaedle/tests/TestMain.cpp index 4187a9b..327fafc 100644 --- a/src/pfaedle/tests/TestMain.cpp +++ b/src/pfaedle/tests/TestMain.cpp @@ -238,7 +238,7 @@ int main(int argc, char** argv) { froms.push_back({eB, 0, 0, {}, 0, {}}); tos.push_back({eC, 0, 0, {}, 0, {}}); - LayerCostsDAG initCost{9999, 0}; + LayerCostsDAG initCost{9998, 0}; double maxTime = 9999; diff --git a/src/shapevl/Collector.cpp b/src/shapevl/Collector.cpp index f75e940..588e40b 100644 --- a/src/shapevl/Collector.cpp +++ b/src/shapevl/Collector.cpp @@ -194,10 +194,8 @@ std::vector Collector::segmentize( POLYLINE pl(shape); std::vector cuts; - size_t i = 0; for (const auto& st : t->getStopTimes()) { cuts.push_back(st.getShapeDistanceTravelled()); - i++; }