Skip to content

Commit

Permalink
GDALDEM: clean up old unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Feb 18, 2025
1 parent e416744 commit 160efb1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/osgEarth/GDALDEM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,25 +166,14 @@ GDALDEMLayer::init()
void
GDALDEMLayer::addedToMap(const Map* map)
{
options().elevationLayer().addedToMap(map);

_map = map;
setProfile(map->getProfile());

if (!map->getLayer<ElevationLayer>())
{
setStatus(Status::ResourceUnavailable, "No ElevationLayer available in the map");
return;
}

super::addedToMap(map);
}

void
GDALDEMLayer::removedFromMap(const Map* map)
{
options().elevationLayer().removedFromMap(map);
_elevationLayer = nullptr;
_map = nullptr;

super::removedFromMap(map);
Expand Down

0 comments on commit 160efb1

Please sign in to comment.