From 5868c0ed3112c48c3d889c6a322416c2df89720e Mon Sep 17 00:00:00 2001 From: Kingsley Stephens Date: Tue, 11 Nov 2014 16:02:17 +0000 Subject: [PATCH] Klockwork: Remove unreachable code Change-Id: I539ccfb17c9748f3b2b3007c6c3c6d7ff0470798 --- dali/internal/event/common/type-info-impl.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/dali/internal/event/common/type-info-impl.cpp b/dali/internal/event/common/type-info-impl.cpp index 750a83d..45377e3 100644 --- a/dali/internal/event/common/type-info-impl.cpp +++ b/dali/internal/event/common/type-info-impl.cpp @@ -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 -- 2.7.4