Use observer_ptr in OrthophotoManager
This commit is contained in:
parent
f03358d4f8
commit
512f1ba3d9
3 changed files with 0 additions and 11 deletions
|
@ -83,12 +83,6 @@ void TileEntry::_create_orthophoto() {
|
|||
}
|
||||
}
|
||||
|
||||
void TileEntry::_free_orthophoto() {
|
||||
if (_orthophoto && tile_bucket.isValid()) {
|
||||
simgear::OrthophotoManager::instance()->unregisterOrthophoto(tile_bucket.gen_index());
|
||||
}
|
||||
}
|
||||
|
||||
// Destructor
|
||||
TileEntry::~TileEntry ()
|
||||
{
|
||||
|
@ -135,7 +129,5 @@ TileEntry::removeFromSceneGraph()
|
|||
parent->removeChild( _node.get() );
|
||||
}
|
||||
}
|
||||
|
||||
_free_orthophoto();
|
||||
}
|
||||
|
||||
|
|
|
@ -79,7 +79,6 @@ private:
|
|||
double _time_expired;
|
||||
|
||||
void _create_orthophoto();
|
||||
void _free_orthophoto();
|
||||
|
||||
public:
|
||||
|
||||
|
|
|
@ -180,8 +180,6 @@ void FGTileMgr::reinit()
|
|||
SG_LOG( SG_TERRAIN, SG_INFO, "Initializing Tile Manager subsystem." );
|
||||
auto terraSync = globals->get_subsystem<simgear::SGTerraSync>();
|
||||
|
||||
simgear::OrthophotoManager::instance()->unregisterAll();
|
||||
|
||||
// drops the previous options reference
|
||||
_options = new simgear::SGReaderWriterOptions;
|
||||
_listener.reset(new TileManagerListener(this));
|
||||
|
|
Loading…
Reference in a new issue