Skip to content

Commit

Permalink
remove unused variable, hopefully fix a non-deterministic test
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Oct 17, 2024
1 parent 0073f27 commit 0871301
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
20 changes: 0 additions & 20 deletions src/pfaedle/tests/TestMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,26 +231,6 @@ int main(int argc, char** argv) {
TEST(cmGet(costM, 1, 0), >=, maxTime);
}

{
EdgeCandGroup froms, tos;
CostMatrix costM, dists;
froms.push_back({eA, 0, 0.5, {}, 0, {}});
froms.push_back({eB, 0, 0, {}, 0, {}});
tos.push_back({eC, 0, 0, {}, 0, {}});

LayerCostsDAG initCost{9999, 0};

double maxTime = 9999;

pfaedle::router::HopCache c;

router.hopsFast(froms, tos, initCost, &costM, rAttrs, rOpts, restr, &c,
maxTime);

TEST(cmGet(costM, 0, 0), ==, approx(5));
TEST(cmGet(costM, 1, 0), >=, maxTime);
}

{
EdgeCandGroup froms, tos;
CostMatrix costM, dists;
Expand Down
2 changes: 0 additions & 2 deletions src/shapevl/Collector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,8 @@ std::vector<LINE> Collector::segmentize(
POLYLINE pl(shape);
std::vector<double> cuts;

size_t i = 0;
for (const auto& st : t->getStopTimes()) {
cuts.push_back(st.getShapeDistanceTravelled());
i++;
}


Expand Down

0 comments on commit 0871301

Please sign in to comment.