diff --git a/routing/road_graph.hpp b/routing/road_graph.hpp index c3831c86c3..4464819a68 100644 --- a/routing/road_graph.hpp +++ b/routing/road_graph.hpp @@ -307,12 +307,12 @@ public: virtual void ForEachFeatureClosestToCross(m2::PointD const & cross, ICrossEdgesLoader & edgesLoader) const = 0; - /// Finds the closest edges to the point. + /// Finds the closest edges to the center of |rect|. /// @return Array of pairs of Edge and projection point on the Edge. If there is no the closest edges /// then returns empty array. virtual void FindClosestEdges(m2::RectD const & rect, uint32_t count, IsGoodFeatureFn const & isGoodFeature, - std::vector> & vicinities) const = 0; + std::vector> & vicinities) const {}; /// @return Types for the specified feature virtual void GetFeatureTypes(FeatureID const & featureId, feature::TypesHolder & types) const = 0; diff --git a/routing/routing_tests/road_graph_builder.cpp b/routing/routing_tests/road_graph_builder.cpp index ca8174dac0..d3d0f6bfc9 100644 --- a/routing/routing_tests/road_graph_builder.cpp +++ b/routing/routing_tests/road_graph_builder.cpp @@ -95,12 +95,6 @@ void RoadGraphMockSource::ForEachFeatureClosestToCross(m2::PointD const & /* cro } } -void RoadGraphMockSource::FindClosestEdges(m2::RectD const &, uint32_t, - routing::IsGoodFeatureFn const &, - std::vector> &) const -{ -} - void RoadGraphMockSource::GetFeatureTypes(FeatureID const & featureId, feature::TypesHolder & types) const { UNUSED_VALUE(featureId); diff --git a/routing/routing_tests/road_graph_builder.hpp b/routing/routing_tests/road_graph_builder.hpp index 8a6b75d1f8..6a24eda441 100644 --- a/routing/routing_tests/road_graph_builder.hpp +++ b/routing/routing_tests/road_graph_builder.hpp @@ -26,9 +26,6 @@ public: double GetMaxSpeedKMpH() const override; void ForEachFeatureClosestToCross(m2::PointD const & cross, ICrossEdgesLoader & edgeLoader) const override; - void FindClosestEdges(m2::RectD const & rect, uint32_t count, - routing::IsGoodFeatureFn const & isGoodFeature, - std::vector> & vicinities) const override; void GetFeatureTypes(FeatureID const & featureId, feature::TypesHolder & types) const override; void GetJunctionTypes(routing::Junction const & junction, feature::TypesHolder & types) const override; routing::IRoadGraph::Mode GetMode() const override;