diff options
author | Alex Zolotarev <alex@maps.me> | 2016-02-10 12:56:57 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:17:06 +0300 |
commit | 5557766bf380bd5d12bd11b6bf9c56217b04e736 (patch) | |
tree | 4820826789911e7242ec37e617c6d4806376d281 | |
parent | 17c8837136b877fe4678f49dc8f5cf395d257e93 (diff) |
Removed unused code.
-rw-r--r-- | map/framework.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index f9cf67ddf3..9dfc016b3e 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1813,51 +1813,6 @@ unique_ptr<FeatureType> Framework::GetFeatureByID(FeatureID const & fid, bool pa return feature; } -namespace -{ - -/// POI - is a point or area feature. -class DoFindClosestPOI -{ - m2::PointD const & m_pt; - double m_distMeters; - FeatureID m_id; - -public: - DoFindClosestPOI(m2::PointD const & pt, double tresholdMeters) - : m_pt(pt), m_distMeters(tresholdMeters) - { - } - - void operator() (FeatureType & ft) - { - if (ft.GetFeatureType() == feature::GEOM_LINE) - return; - - double const dist = MercatorBounds::DistanceOnEarth(m_pt, feature::GetCenter(ft)); - if (dist < m_distMeters) - { - m_distMeters = dist; - m_id = ft.GetID(); - } - } - - void LoadMetadata(model::FeaturesFetcher const & model, feature::Metadata & metadata) const - { - if (!m_id.IsValid()) - return; - - Index::FeaturesLoaderGuard guard(model.GetIndex(), m_id.m_mwmId); - - FeatureType ft; - guard.GetFeatureByIndex(m_id.m_index, ft); - - metadata = ft.GetMetadata(); - } -}; - -} - BookmarkAndCategory Framework::FindBookmark(UserMark const * mark) const { BookmarkAndCategory empty = MakeEmptyBookmarkAndCategory(); |