From: ThorstenB Date: Wed, 28 Mar 2012 20:55:40 +0000 (+0200) Subject: Remove dead code. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2b62411a786a0efbb10faca7a0032d6a37729d2e;p=simgear.git Remove dead code. --- diff --git a/simgear/scene/model/ModelRegistry.cxx b/simgear/scene/model/ModelRegistry.cxx index f1199f68..d65efbb0 100644 --- a/simgear/scene/model/ModelRegistry.cxx +++ b/simgear/scene/model/ModelRegistry.cxx @@ -64,29 +64,7 @@ using namespace osgUtil; using namespace osgDB; using namespace simgear; -// Little helper class that holds an extra reference to a -// loaded 3d model. -// Since we clone all structural nodes from our 3d models, -// the database pager will only see one single reference to -// top node of the model and expire it relatively fast. -// We attach that extra reference to every model cloned from -// a base model in the pager. When that cloned model is deleted -// this extra reference is deleted too. So if there are no -// cloned models left the model will expire. namespace { -class SGDatabaseReference : public Observer { -public: - SGDatabaseReference(Referenced* referenced) : - mReferenced(referenced) - { } - virtual void objectDeleted(void*) - { - mReferenced = 0; - } -private: - ref_ptr mReferenced; -}; - // Set the name of a Texture to the simple name of its image // file. This can be used to do livery substitution after the image // has been deallocated.