From c4eb6b7b65328d0a782eae09b62f5351eaad31eb Mon Sep 17 00:00:00 2001 From: frohlich Date: Tue, 10 Mar 2009 19:20:44 +0000 Subject: [PATCH] Remove unused functions/includes ... Modified Files: simgear/scene/tgdb/userdata.hxx simgear/scene/tgdb/userdata.cxx --- simgear/scene/tgdb/userdata.cxx | 20 -------------------- simgear/scene/tgdb/userdata.hxx | 14 +------------- 2 files changed, 1 insertion(+), 33 deletions(-) diff --git a/simgear/scene/tgdb/userdata.cxx b/simgear/scene/tgdb/userdata.cxx index 6a4065dc..fab67b2f 100644 --- a/simgear/scene/tgdb/userdata.cxx +++ b/simgear/scene/tgdb/userdata.cxx @@ -64,23 +64,3 @@ osg::Node* sgGetRandomModel(SGMatModel *obj) { return obj->get_random_model( root_props ); } -osg::Node* sgGetModel(int i, SGMatModel *obj) { - return obj->get_model(i, root_props ); - } - -static void random_pt_inside_tri( float *res, - float *n1, float *n2, float *n3 ) -{ - double a = sg_random(); - double b = sg_random(); - if ( a + b > 1.0 ) { - a = 1.0 - a; - b = 1.0 - b; - } - double c = 1 - a - b; - - res[0] = n1[0]*a + n2[0]*b + n3[0]*c; - res[1] = n1[1]*a + n2[1]*b + n3[1]*c; - res[2] = n1[2]*a + n2[2]*b + n3[2]*c; -} - diff --git a/simgear/scene/tgdb/userdata.hxx b/simgear/scene/tgdb/userdata.hxx index da0a4f5d..e5a870e3 100644 --- a/simgear/scene/tgdb/userdata.hxx +++ b/simgear/scene/tgdb/userdata.hxx @@ -27,23 +27,11 @@ #include -#include +#include -#include - -#include -#include -#include - -using std::string; - -class SGMaterial; class SGMatModel; -class SGMatModelGroup; -class SGModelLib; class SGPropertyNode; - /** * the application must call sgUserDataInit() and specify the * following values (needed by the model loader callback at draw time) -- 2.39.5