[Marble-commits] KDE/kdeedu/marble/src/lib

Jens-Michael Hoffmann jensmh at gmx.de
Mon Mar 29 01:30:06 CEST 2010


SVN commit 1108462 by jmhoffmann:

MarbleModel: cleanup after refactoring, mostly dead code removal.

The check for the map theme having texture layers seems to be unnecessary
as the tileloader will return an empty list then, so it was also removed.

 M  +0 -11     MarbleModel.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/MarbleModel.cpp #1108461:1108462
@@ -72,7 +72,6 @@
 #include "TileCreator.h"
 #include "TileCreatorDialog.h"
 #include "StackedTileLoader.h"
-#include "TileLoaderHelper.h"
 #include "VectorComposer.h"
 #include "ViewParams.h"
 #include "ViewportParams.h"
@@ -897,16 +896,6 @@
 
 void MarbleModel::reloadMap() const
 {
-    if ( !d->m_mapTheme->map()->hasTextureLayers() )
-        return;
-
-    const QString themeId = d->m_mapTheme->head()->theme();
-    GeoSceneLayer * const layer = static_cast<GeoSceneLayer*>( d->m_mapTheme->map()->
-                                                               layer( themeId ));
-    Q_ASSERT( layer );
-    GeoSceneTexture * const texture = static_cast<GeoSceneTexture*>( layer->groundDataset() );
-    Q_ASSERT( texture );
-
     Q_ASSERT( d->m_tileLoader );
     QList<TileId> displayed = d->m_tileLoader->tilesOnDisplay();
     QList<TileId>::const_iterator pos = displayed.constBegin();


More information about the Marble-commits mailing list