From df430afddb1a49cf96576b61fa726a311e0f5303 Mon Sep 17 00:00:00 2001 From: Joseph Mirabel <jmirabel@laas.fr> Date: Mon, 14 Dec 2015 17:18:19 +0100 Subject: [PATCH] Remove useless tests --- src/manipulation-planner.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manipulation-planner.cc b/src/manipulation-planner.cc index c43cfb63..17635160 100644 --- a/src/manipulation-planner.cc +++ b/src/manipulation-planner.cc @@ -304,7 +304,7 @@ namespace hpp { } else projPath = path; PathValidationReportPtr_t report; if (pathValidation->validate (projPath, false, validPath, report)) { - if (!_1to2 || !_2to1) nbConnection++; + nbConnection++; if (!_1to2) roadmap ()->addEdge (*itn1, *itn2, projPath); if (!_2to1) { core::interval_t timeRange = projPath->timeRange (); @@ -352,7 +352,7 @@ namespace hpp { } else projPath = path; PathValidationReportPtr_t report; if (pathValidation->validate (projPath, false, validPath, report)) { - if (!_1to2 || !_2to1) nbConnection++; + nbConnection++; if (!_1to2) roadmap ()->addEdge (*itn1, *itn2, projPath); if (!_2to1) { core::interval_t timeRange = projPath->timeRange (); -- GitLab