Skip to content

Commit 05a0bbd

Browse files
committed
Remove recursive test.
1 parent eb83884 commit 05a0bbd

File tree

1 file changed

+0
-20
lines changed
  • polygon_coverage_solvers/include/polygon_coverage_solvers

1 file changed

+0
-20
lines changed

polygon_coverage_solvers/include/polygon_coverage_solvers/graph_base.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -131,26 +131,6 @@ class GraphBase {
131131
bool is_created_;
132132
};
133133

134-
// Recursive function to search for largest x between lower and upper bound.
135-
inline double searchLargestFeasibleScale(const double low, const double high,
136-
const double condition,
137-
const double eps = 0.1) {
138-
// Early abort.
139-
if (high < low) return low;
140-
// Terminate recursion.
141-
if ((high - low) < eps) return low;
142-
143-
const double mid = (high + low) / 2.0;
144-
145-
if (mid < condition) {
146-
// mid satisfies condition. Find even higher scale.
147-
return searchLargestFeasibleScale(mid, high, condition, eps);
148-
} else {
149-
// mid does not satisfy condition. Find smaller scale that does.
150-
return searchLargestFeasibleScale(low, mid, condition, eps);
151-
}
152-
}
153-
154134
} // namespace polygon_coverage_planning
155135

156136
#include "polygon_coverage_solvers/impl/graph_base_impl.h"

0 commit comments

Comments
 (0)