Remove unused methods.

Modified Files:
	material/matmodel.hxx material/matmodel.cxx
This commit is contained in:
frohlich 2009-03-10 19:23:19 +00:00 committed by Tim Moore
parent 5c97fd576a
commit fef2006663
2 changed files with 0 additions and 39 deletions

View File

@ -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 )
{

View File

@ -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.
*