]> git.mxchange.org Git - flightgear.git/commitdiff
Removed unused function fgFindNode (the version used now is in model.cxx).
authordavid <david>
Fri, 22 Mar 2002 13:24:29 +0000 (13:24 +0000)
committerdavid <david>
Fri, 22 Mar 2002 13:24:29 +0000 (13:24 +0000)
src/Main/main.cxx

index a195133481e71d53486b0ea4a09fb342216a65ed..9831d462d2dbcc00851c2888f3217ef5dd17d1d7 100644 (file)
@@ -265,24 +265,6 @@ void fgBuildRenderStates( void ) {
     menus->enable( GL_BLEND );
 }
 
-// fgFindNode -- a function that finds a named node in an ssg graph
-ssgEntity *fgFindNode( ssgEntity *node, const char *name ) {
-    if ( node->getName() != NULL && strcmp( name, node->getName() ) == 0 ) {
-        return node;
-    } else if ( node->isAKindOf(ssgTypeBranch()) ) {
-        ssgEntity *kid = ((ssgBranch*)node)->getKid(0);
-        while ( kid != NULL ) {
-            ssgEntity *n = fgFindNode(kid, name);
-            if ( n != NULL ) {
-                return n;
-            }
-            kid = ((ssgBranch*)node)->getNextKid();
-        }
-    }
-
-    return NULL;
-}
-
 // fgInitVisuals() -- Initialize various GL/view parameters
 void fgInitVisuals( void ) {
     fgLIGHT *l;