Modify for unreachable code in simulator.
authorKIM JungYong <jyong2.kim@samsung.com>
Tue, 13 Dec 2016 03:48:36 +0000 (12:48 +0900)
committerUze Choi <uzchoi@samsung.com>
Tue, 3 Jan 2017 08:56:39 +0000 (08:56 +0000)
In this patch, unreachable code is removed in the simulator.

Change-Id: I58db4b332ee063096bc5015afc9cfe8cf6caf6fb
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15533
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15843

service/simulator/src/client/simulator_remote_resource_impl.cpp
service/simulator/src/common/resource_model_schema_builder.cpp

index 3473eda..c418b7d 100644 (file)
@@ -42,8 +42,6 @@ static std::string requestTypeToString(RequestType type)
         default:
             return "";
     }
-
-    return ""; // Control should not reach here
 }
 
 static RequestType requestTypeToEnum(const std::string &type)
index d584a2d..372287e 100644 (file)
@@ -86,8 +86,6 @@ std::shared_ptr<AttributeProperty> ResourceModelSchemaBuilder::buildAttribute(
             OIC_LOG(ERROR, TAG, "Unknown type!");
             return nullptr;
     }
-
-    return nullptr;
 }
 
 std::shared_ptr<IntegerProperty> ResourceModelSchemaBuilder::buildIntegerAttribute(
@@ -326,4 +324,4 @@ void ResourceModelSchemaBuilder::setArrayProperties(
             break;
         }
     }
-}
\ No newline at end of file
+}