From: Kingsley Stephens Date: Tue, 11 Nov 2014 16:02:17 +0000 (+0000) Subject: Klockwork: Remove unreachable code X-Git-Tag: dali_1.0.17~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5868c0ed3112c48c3d889c6a322416c2df89720e;p=platform%2Fcore%2Fuifw%2Fdali-core.git Klockwork: Remove unreachable code Change-Id: I539ccfb17c9748f3b2b3007c6c3c6d7ff0470798 --- 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