Removed dead code
This commit is contained in:
parent
f7afd3bab2
commit
f2704e0bf3
@ -159,24 +159,12 @@ class OSGWIDGET_EXPORT StyleManager: public osg::Object
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
bool _applyStyles(T* t)
|
bool _applyStyles(T* t)
|
||||||
{
|
{
|
||||||
if(!t)
|
|
||||||
{
|
|
||||||
warn()
|
|
||||||
<< "Cannot call StyleManager::applyStyle with a NULL object."
|
|
||||||
<< std::endl
|
|
||||||
;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
osg::Object* obj = dynamic_cast<osg::Object*>(t);
|
osg::Object* obj = dynamic_cast<osg::Object*>(t);
|
||||||
|
|
||||||
if(!obj)
|
if(!obj)
|
||||||
{
|
{
|
||||||
warn()
|
warn()
|
||||||
<< "Cannot coerce object into osg::Object in StyleManager:::applyStyle"
|
<< "Cannot call StyleManager::applyStyle with a NULL object or coerce object into osg::Object."
|
||||||
<< std::endl
|
<< std::endl;
|
||||||
;
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user