From 6fe860ffd542a8967e20ef348c719a3a3bcd13b8 Mon Sep 17 00:00:00 2001 From: KIM JungYong Date: Tue, 13 Dec 2016 12:48:36 +0900 Subject: [PATCH] Modify for unreachable code in simulator. In this patch, unreachable code is removed in the simulator. Change-Id: I58db4b332ee063096bc5015afc9cfe8cf6caf6fb Signed-off-by: KIM JungYong Reviewed-on: https://gerrit.iotivity.org/gerrit/15533 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi Reviewed-on: https://gerrit.iotivity.org/gerrit/15843 --- service/simulator/src/client/simulator_remote_resource_impl.cpp | 2 -- service/simulator/src/common/resource_model_schema_builder.cpp | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/service/simulator/src/client/simulator_remote_resource_impl.cpp b/service/simulator/src/client/simulator_remote_resource_impl.cpp index 3473eda..c418b7d 100644 --- a/service/simulator/src/client/simulator_remote_resource_impl.cpp +++ b/service/simulator/src/client/simulator_remote_resource_impl.cpp @@ -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) diff --git a/service/simulator/src/common/resource_model_schema_builder.cpp b/service/simulator/src/common/resource_model_schema_builder.cpp index d584a2d..372287e 100644 --- a/service/simulator/src/common/resource_model_schema_builder.cpp +++ b/service/simulator/src/common/resource_model_schema_builder.cpp @@ -86,8 +86,6 @@ std::shared_ptr ResourceModelSchemaBuilder::buildAttribute( OIC_LOG(ERROR, TAG, "Unknown type!"); return nullptr; } - - return nullptr; } std::shared_ptr ResourceModelSchemaBuilder::buildIntegerAttribute( @@ -326,4 +324,4 @@ void ResourceModelSchemaBuilder::setArrayProperties( break; } } -} \ No newline at end of file +} -- 2.7.4