From: frohlich Date: Sat, 7 Mar 2009 11:47:54 +0000 (+0000) Subject: Remove SGLocation based api. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=85be5659a75d4095ad188b66bdc6623a9ef6e202;p=flightgear.git Remove SGLocation based api. Modified Files: src/Scenery/tilemgr.cxx src/Scenery/tilemgr.hxx --- diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index cc53e63ae..0d6ef6c89 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -321,13 +321,6 @@ int FGTileMgr::update( double visibility_meters ) return update(SGGeod::fromDegM(lon, lat, 0), visibility_meters); } -int FGTileMgr::update( SGLocation *location, double visibility_meters) -{ - double lon = location->getLongitude_deg(); - double lat = location->getLatitude_deg(); - return update(SGGeod::fromDegM(lon, lat, 0), visibility_meters); -} - int FGTileMgr::update( const SGGeod& location, double visibility_meters) { SG_LOG( SG_TERRAIN, SG_DEBUG, "FGTileMgr::update()" ); diff --git a/src/Scenery/tilemgr.hxx b/src/Scenery/tilemgr.hxx index d8c105431..2b32b3786 100644 --- a/src/Scenery/tilemgr.hxx +++ b/src/Scenery/tilemgr.hxx @@ -94,7 +94,6 @@ public: // local chunks. If the chunk isn't already in the cache, then // read it from disk. int update( double visibility_meters ); - int update( SGLocation *location, double visibility_meters); int update( const SGGeod& location, double visibility_meters); // Prepare the ssg nodes corresponding to each tile. For each