1
0
Fork 0

Cleaned up comments to tile entry code

This commit is contained in:
timoore 2008-02-21 22:50:05 +00:00
parent c3ee389fe0
commit 72a42c2240
3 changed files with 2 additions and 4 deletions

View file

@ -183,8 +183,6 @@ void FGNewCache::clear_cache() {
bool FGNewCache::insert_tile( FGTileEntry *e ) {
// register tile in the cache
long tile_index = e->get_tile_bucket().gen_index();
// not needed if timestamps are updated in cull-callback
// e->set_timestamp(globals->get_sim_time_sec());
tile_cache[tile_index] = e;
return true;

View file

@ -104,8 +104,6 @@ public:
inline FGTileEntry *get_tile( const long tile_index ) const {
const_tile_map_iterator it = tile_cache.find( tile_index );
if ( it != tile_cache.end() ) {
// not needed if timestamps are updated in cull-callback
// it->second->set_timestamp(globals->get_sim_time_sec());
return it->second;
} else {
return NULL;

View file

@ -96,6 +96,8 @@ public:
namespace
{
// Update the timestamp on a tile whenever it is in view.
class TileCullCallback : public osg::NodeCallback
{
public: