Remove unused methods.
Modified Files: material/matmodel.hxx material/matmodel.cxx
This commit is contained in:
@@ -46,28 +46,6 @@ using std::map;
|
|||||||
|
|
||||||
using namespace simgear;
|
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.
|
// Implementation of SGMatModel.
|
||||||
@@ -155,14 +133,6 @@ SGMatModel::load_models( SGPropertyNode *prop_root )
|
|||||||
_models_loaded = true;
|
_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*
|
osg::Node*
|
||||||
SGMatModel::get_random_model( SGPropertyNode *prop_root )
|
SGMatModel::get_random_model( SGPropertyNode *prop_root )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -77,15 +77,6 @@ public:
|
|||||||
int get_model_count( SGPropertyNode *prop_root );
|
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.
|
* Get a randomly-selected variant model for the object.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user