From: frohlich Date: Tue, 10 Mar 2009 19:23:19 +0000 (+0000) Subject: Remove unused methods. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fef20066636a15801a0907a94bf8b8eb030f3842;p=simgear.git Remove unused methods. Modified Files: material/matmodel.hxx material/matmodel.cxx --- diff --git a/simgear/scene/material/matmodel.cxx b/simgear/scene/material/matmodel.cxx index 47fe1e09..d8c9e3f1 100644 --- a/simgear/scene/material/matmodel.cxx +++ b/simgear/scene/material/matmodel.cxx @@ -46,28 +46,6 @@ using std::map; using namespace simgear; - -//////////////////////////////////////////////////////////////////////// -// Local static functions. -//////////////////////////////////////////////////////////////////////// - -/** - * Internal method to test whether a file exists. - * - * TODO: this should be moved to a SimGear library of local file - * functions. - */ -static inline bool -local_file_exists( const string& path ) { - sg_gzifstream in( path ); - if ( ! in.is_open() ) { - return false; - } else { - return true; - } -} - - //////////////////////////////////////////////////////////////////////// // Implementation of SGMatModel. @@ -155,14 +133,6 @@ SGMatModel::load_models( SGPropertyNode *prop_root ) _models_loaded = true; } -osg::Node* -SGMatModel::get_model( int index, - SGPropertyNode *prop_root ) -{ - load_models( prop_root ); // comment this out if preloading models - return _models[index].get(); -} - osg::Node* SGMatModel::get_random_model( SGPropertyNode *prop_root ) { diff --git a/simgear/scene/material/matmodel.hxx b/simgear/scene/material/matmodel.hxx index ac685697..9d06427a 100644 --- a/simgear/scene/material/matmodel.hxx +++ b/simgear/scene/material/matmodel.hxx @@ -77,15 +77,6 @@ public: int get_model_count( SGPropertyNode *prop_root ); - /** - * Get a specific variant model for the object. - * - * @param index The index of the model. - * @return The model. - */ - osg::Node *get_model( int index, SGPropertyNode *prop_root ); - - /** * Get a randomly-selected variant model for the object. *