diff options
author | Ilya Grechuhin <i.grechuhin@mapswithme.com> | 2015-07-03 13:58:21 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:53:59 +0300 |
commit | 23462e039502f5168f52fd6fb7fd39355526a55a (patch) | |
tree | b2e75562480bb0697d7f39813e5cd3c0a25f8b9e /map/ruler.cpp | |
parent | dfae79c28a0e217e308228d0c9f603751fcc18ed (diff) |
[omim] Removed yards.
Diffstat (limited to 'map/ruler.cpp')
-rw-r--r-- | map/ruler.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/map/ruler.cpp b/map/ruler.cpp index fe8a50da0d..7704db5a25 100644 --- a/map/ruler.cpp +++ b/map/ruler.cpp @@ -64,23 +64,6 @@ namespace { "500 mi", 500 * 5280 } }; - UnitValue g_arrYards[] = { - { "50 yd", 50 }, - { "100 yd", 100 }, - { "200 yd", 200 }, - { "500 yd", 500 }, - { "0.5 mi", 1760 / 2 }, - { "1 mi", 1760 }, - { "2 mi", 2 * 1760 }, - { "5 mi", 5 * 1760 }, - { "10 mi", 10 * 1760 }, - { "20 mi", 20 * 1760 }, - { "50 mi", 50 * 1760 }, - { "100 mi", 100 * 1760 }, - { "200 mi", 200 * 1760 }, - { "500 mi", 500 * 1760 } - }; - UnitValue g_arrMetres[] = { { "1 m", 1 }, { "2 m", 2 }, @@ -398,12 +381,6 @@ double Ruler::CalcMetresDiff(double value) count = ARRAY_SIZE(g_arrFeets); conversionFn = &MeasurementUtils::MetersToFeet; break; - - case 2: - arrU = g_arrYards; - count = ARRAY_SIZE(g_arrYards); - conversionFn = &MeasurementUtils::MetersToYards; - break; } int prevUnitRange = m_currentRangeIndex; @@ -493,9 +470,6 @@ void Ruler::layout() case Settings::Foot: m_currSystem = 1; break; - case Settings::Yard: - m_currSystem = 2; - break; } if (prevCurrSystem != m_currSystem) |