From f2704e0bf3123f40e851f46d8cbc01414da0f50c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 22 Jun 2016 11:58:45 +0100 Subject: [PATCH] Removed dead code --- include/osgWidget/StyleManager | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/include/osgWidget/StyleManager b/include/osgWidget/StyleManager index 824d28fe9..ccf6e3f7f 100644 --- a/include/osgWidget/StyleManager +++ b/include/osgWidget/StyleManager @@ -159,24 +159,12 @@ class OSGWIDGET_EXPORT StyleManager: public osg::Object template bool _applyStyles(T* t) { - if(!t) - { - warn() - << "Cannot call StyleManager::applyStyle with a NULL object." - << std::endl - ; - - return false; - } - osg::Object* obj = dynamic_cast(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; }