]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/tileentry.cxx
New PathsDialog, for managing locations.
[flightgear.git] / src / Scenery / tileentry.cxx
index d85c73926a11e2c72ccd336ccc8497a694a58e25..31d14c7137f117aab62a2421988c5b9d3374274f 100644 (file)
@@ -101,8 +101,6 @@ TileEntry::addToSceneGraph(osg::Group *terrain_branch)
 void
 TileEntry::removeFromSceneGraph()
 {
-    SG_LOG( SG_TERRAIN, SG_DEBUG, "disconnecting TileEntry nodes" );
-
     if (! is_loaded()) {
         SG_LOG( SG_TERRAIN, SG_DEBUG, "removing a not-fully loaded tile!" );
     } else {
@@ -119,19 +117,3 @@ TileEntry::removeFromSceneGraph()
     }
 }
 
-void
-TileEntry::refresh()
-{
-    osg::Group *parent = NULL;
-    // find the nodes branch parent
-    if ( _node->getNumParents() > 0 ) {
-        // find the first parent (should only be one)
-        parent = _node->getParent( 0 ) ;
-        if( parent ) {
-            parent->removeChild( _node.get() );
-        }
-    }
-    _node = new osg::LOD;
-    if (parent)
-        parent->addChild(_node.get());
-}