Cleaned debug prints
authorSami Rämö <sami.ramo@ixonos.com>
Fri, 11 Jun 2010 13:36:18 +0000 (16:36 +0300)
committerSami Rämö <sami.ramo@ixonos.com>
Fri, 11 Jun 2010 13:36:18 +0000 (16:36 +0300)
src/map/mapengine.cpp
src/map/mapscene.cpp

index 43b9355..635cfe1 100644 (file)
@@ -438,10 +438,6 @@ void MapEngine::setTilesGridSize(const QSize &viewSize)
 
     m_tilesGridSize.setHeight(gridHeight);
     m_tilesGridSize.setWidth(gridWidth);
-
-    qWarning() << __PRETTY_FUNCTION__ << "tiles:" << m_tilesGridSize.width()
-                                      << "*" << m_tilesGridSize.height()
-                                      << "=" << m_tilesGridSize.width() * m_tilesGridSize.height();
 }
 
 void MapEngine::setViewLocation(QPointF latLonCoordinate)
index b7b9508..c6f3102 100644 (file)
@@ -44,7 +44,7 @@ MapScene::MapScene(QObject *parent)
 
 void MapScene::addTile(int tileZoomLevel, QPoint tileNumber, const QPixmap &image, int viewZoomLevel)
 {
-//    qWarning() << __PRETTY_FUNCTION__ << "x:" << tileNumber.x() << "y:" << tileNumber.y();
+    qDebug() << __PRETTY_FUNCTION__;
 
     // tile might already be in the scene if expired tile was returned from the cache to be
     // temporarily shown while downloading the fresh one.
@@ -61,7 +61,7 @@ void MapScene::addTile(int tileZoomLevel, QPoint tileNumber, const QPixmap &imag
     m_mapTilesInScene.insert(hashKey, tile);
     addItem(tile);
 
-    qWarning() << __PRETTY_FUNCTION__ << "tiles:" << m_mapTilesInScene.count();
+    qDebug() << __PRETTY_FUNCTION__ << "tiles count:" << m_mapTilesInScene.count();
 
     enqueueRemoveStackedTiles(tile);
     removeOtherLevelTiles();
@@ -114,26 +114,21 @@ void MapScene::runNextStackedTilesRemoval()
 
 void MapScene::removeOtherLevelTiles()
 {
-//    qWarning() << __PRETTY_FUNCTION__;
+    qDebug() << __PRETTY_FUNCTION__;
 
     for (int x = m_viewTilesGrid.left(); x <= m_viewTilesGrid.right(); x++) {
         for (int y = m_viewTilesGrid.top(); y <= m_viewTilesGrid.bottom(); y++) {
-//            qWarning() << __PRETTY_FUNCTION__ << "x:" << x << "y:" << y;
             if (!m_mapTilesInScene.contains(MapEngine::tilePath(m_zoomLevel, x, y)))
                 return;
         }
     }
 
-//    qWarning() << __PRETTY_FUNCTION__ << "all current grid tiles are in the scene";
-
     foreach(MapTile *tile, m_mapTilesInScene) {
         if (tile->zoomLevel() != m_zoomLevel) {
             removeTile(tile);
-            qWarning() << __PRETTY_FUNCTION__ << "removed other level tile -------------";
+            qDebug() << __PRETTY_FUNCTION__ << "removed other level tile";
         }
     }
-
-//    qWarning() << __PRETTY_FUNCTION__ << "items in scene:" << items().count();
 }
 
 void MapScene::removeOutOfViewTiles(QRect tilesGrid, int zoomLevel)
@@ -176,8 +171,6 @@ void MapScene::removeOutOfViewTiles(QRect tilesGrid, int zoomLevel)
         if (tile)
             removeTile(tile);
     }
-
-//    qWarning() << __PRETTY_FUNCTION__ << "items in scene:" << items().count();
 }
 
 void MapScene::removeStackedTiles(MapTile *newTile)
@@ -199,7 +192,6 @@ void MapScene::removeStackedTiles(MapTile *newTile)
             }
         }
     }
-//    qWarning() << __PRETTY_FUNCTION__ << "items in scene:" << items().count();
 }
 
 void MapScene::removeTile(MapTile *tile)
@@ -213,7 +205,7 @@ void MapScene::removeTile(MapTile *tile)
     m_removeStackedTilesList.removeAll(tile);
     delete tile;
 
-    qWarning() << __PRETTY_FUNCTION__ << "tiles:" << m_mapTilesInScene.count();
+    qDebug() << __PRETTY_FUNCTION__ << "tiles count:" << m_mapTilesInScene.count();
 }
 
 void MapScene::setSceneVerticalOverlap(int viewHeight, int zoomLevel)