Klockwork: Remove unreachable code 32/30132/1
authorKingsley Stephens <k.stephens@partner.samsung.com>
Tue, 11 Nov 2014 16:02:17 +0000 (16:02 +0000)
committerKingsley Stephens <k.stephens@partner.samsung.com>
Tue, 11 Nov 2014 16:02:17 +0000 (16:02 +0000)
Change-Id: I539ccfb17c9748f3b2b3007c6c3c6d7ff0470798

dali/internal/event/common/type-info-impl.cpp

index 750a83d..45377e3 100644 (file)
@@ -277,10 +277,6 @@ const std::string& TypeInfo::GetPropertyName( Property::Index index ) const
   }
 
   DALI_ASSERT_ALWAYS( ! "Cannot find property index" ); // use the same assert as ProxyObject
-
-  // Property not found, return reference to invalid property string.
-  static const std::string EMPTY_PROPERTY_NAME;
-  return EMPTY_PROPERTY_NAME;
 }
 
 void TypeInfo::AddActionFunction( const std::string &actionName, Dali::TypeInfo::ActionFunction function )
@@ -507,8 +503,6 @@ Property::Value TypeInfo::GetProperty( const BaseObject *object, Property::Index
   }
 
   DALI_ASSERT_ALWAYS( ! "Cannot find property index" ); // use the same assert as ProxyObject
-
-  return Property::Value();
 }
 
 Property::Value TypeInfo::GetProperty( const BaseObject *object, const std::string& name ) const
@@ -528,8 +522,6 @@ Property::Value TypeInfo::GetProperty( const BaseObject *object, const std::stri
   }
 
   DALI_ASSERT_ALWAYS( ! "Cannot find property name" );
-
-  return Property::Value();
 }
 
 } // namespace Internal