diff --git a/modules/map/pnc_map/path.cc b/modules/map/pnc_map/path.cc index 0bb689024f45c51f87dbf4dcce6124f360ce29e0..bdf9b1254ed1b29f926c697cf08af3c42b998524 100644 --- a/modules/map/pnc_map/path.cc +++ b/modules/map/pnc_map/path.cc @@ -546,17 +546,6 @@ bool Path::is_on_path(const Vec2d& point) const { return false; } -bool Path::is_on_path(const Box2d& box) const { - std::vector corners; - box.GetAllCorners(&corners); - for (const auto& corner : corners) { - if (!is_on_path(corner)) { - return false; - } - } - return true; -} - bool Path::overlap_with(const common::math::Box2d& box, double width) const { if (_use_path_approximation) { return _approximation.overlap_with(*this, box, width); diff --git a/modules/map/pnc_map/path.h b/modules/map/pnc_map/path.h index f01c574a27bbbe52cb0b107541bc6cf791571275..d4a7cbaef8f484be5fc2e1b2a814276416a81fc1 100644 --- a/modules/map/pnc_map/path.h +++ b/modules/map/pnc_map/path.h @@ -261,8 +261,6 @@ class Path { bool get_width(const double s, double* left_width, double* right_width) const; bool is_on_path(const common::math::Vec2d& point) const; - // requires all corners of the box on path. - bool is_on_path(const common::math::Box2d& box) const; bool overlap_with(const common::math::Box2d& box, double width) const; std::string debug_string() const;