diff --git a/map/framework.cpp b/map/framework.cpp index 6b9cfe9921..0ce859452c 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1668,26 +1668,6 @@ unique_ptr Framework::GetFeatureAtMercatorPoint(m2::PointD const & return pointFt ? move(pointFt) : move(areaFt); } -bool Framework::GetVisiblePOI(m2::PointD const & glbPoint, search::AddressInfo & info, feature::Metadata & metadata) const -{ - ASSERT(m_drapeEngine != nullptr, ()); - FeatureID const id = m_drapeEngine->GetVisiblePOI(glbPoint); - if (!id.IsValid()) - return false; - - auto const feature = GetPOIByID(id); - metadata = feature->GetMetadata(); - info = GetPOIAddressInfo(*feature); - return true; -} - -unique_ptr Framework::GetVisiblePOI(m2::PointD const & ptMercator) const -{ - ASSERT(m_drapeEngine != nullptr, ()); - FeatureID const fid = m_drapeEngine->GetVisiblePOI(ptMercator); - return fid.IsValid() ? GetPOIByID(fid) : unique_ptr(); -} - unique_ptr Framework::GetPOIByID(FeatureID const & fid) const { ASSERT(fid.IsValid(), ()); diff --git a/map/framework.hpp b/map/framework.hpp index adbc5d7517..867d23ecef 100644 --- a/map/framework.hpp +++ b/map/framework.hpp @@ -489,9 +489,6 @@ public: /// TODO(AlexZ): Refactor out other similar methods. /// @returns nullptr if no feature was found at the given mercator point. unique_ptr GetFeatureAtMercatorPoint(m2::PointD const & mercator) const; - bool GetVisiblePOI(m2::PointD const & glbPoint, search::AddressInfo & info, feature::Metadata & metadata) const; - // TODO(AlexZ): Refactor similar getters to share common interface. - unique_ptr GetVisiblePOI(m2::PointD const & ptMercator) const; // TODO(AlexZ): Do we really need to avoid linear features? unique_ptr GetPOIByID(FeatureID const & fid) const; void FindClosestPOIMetadata(m2::PointD const & pt, feature::Metadata & metadata) const;