Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2012-03-23 17:17:20 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:37:04 +0300
commitce659dc61be1c17ce49c95f043b473779bc905cc (patch)
tree793d47435a0e9613dd89cf887da01e1662991114 /android/jni/com/mapswithme/platform/Platform.cpp
parent8891c7fe9aeae6ffe39305a9495755b3edc9b634 (diff)
removed Platform::MaxTilesCount
Diffstat (limited to 'android/jni/com/mapswithme/platform/Platform.cpp')
-rw-r--r--android/jni/com/mapswithme/platform/Platform.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/android/jni/com/mapswithme/platform/Platform.cpp b/android/jni/com/mapswithme/platform/Platform.cpp
index 5a1c21a220..08c3c4cb78 100644
--- a/android/jni/com/mapswithme/platform/Platform.cpp
+++ b/android/jni/com/mapswithme/platform/Platform.cpp
@@ -34,35 +34,8 @@ public:
/// calculating how much tiles we need for the screen of such size
- m_maxTilesCount = 0;
-
m_preCachingDepth = 3;
- /// calculating for non-rotated screen
-
- for (unsigned i = 0; i < m_preCachingDepth; ++i)
- {
-// LOG(LINFO, ("calculating", i, "level"));
- /// minimum size of tile on the screen
- float minTileSize = floor((m_tileSize << i) / 1.05 / 2.0) - 1;
-// LOG(LINFO, ("minTileSize:", minTileSize));
- int tilesOnXSide = ceil(screenWidth / minTileSize) + 1;
-// LOG(LINFO, ("tilesOnXSide:", tilesOnXSide));
- int tilesOnYSide = ceil(screenHeight / minTileSize) + 1;
-// LOG(LINFO, ("tilesOnYSide:", tilesOnYSide));
- /// tiles in the single screen
- int singleScreenTilesCount = tilesOnXSide * tilesOnYSide;
-// LOG(LINFO, ("singleScreenTilesCount:", singleScreenTilesCount));
- int curLevelTilesCount = singleScreenTilesCount * 2;
-// LOG(LINFO, ("curLevelTilesCount:", curLevelTilesCount));
- m_maxTilesCount += curLevelTilesCount;
-// LOG(LINFO, ("on", i, "depth we need", curLevelTilesCount, "tiles"));
- }
-
- LOG(LINFO, ("minimum amount of tiles needed is", m_maxTilesCount));
-
- m_maxTilesCount = max(static_cast<int>(120 * k), m_maxTilesCount);
-
switch (densityDpi)
{
case 120:
@@ -104,11 +77,6 @@ string Platform::SkinName() const
return m_impl->m_skinName;
}
-int Platform::MaxTilesCount() const
-{
- return m_impl->m_maxTilesCount;
-}
-
int Platform::TileSize() const
{
return m_impl->m_tileSize;