Removed dead code

This commit is contained in:
Robert Osfield 2016-06-22 11:58:45 +01:00
parent f7afd3bab2
commit f2704e0bf3

View File

@ -159,24 +159,12 @@ class OSGWIDGET_EXPORT StyleManager: public osg::Object
template<typename 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);
if(!obj)
{
warn()
<< "Cannot coerce object into osg::Object in StyleManager:::applyStyle"
<< std::endl
;
<< "Cannot call StyleManager::applyStyle with a NULL object or coerce object into osg::Object."
<< std::endl;
return false;
}