From da621105a015a1c70538df5288cde56d6708ff22 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 22 Mar 2002 13:24:29 +0000 Subject: [PATCH] Removed unused function fgFindNode (the version used now is in model.cxx). --- src/Main/main.cxx | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index a19513348..9831d462d 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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; -- 2.39.5