Simulator:Fix for static analyzer reported issues 01/21501/6
authorHarry <h.marappa@samsung.com>
Tue, 4 Jul 2017 16:33:18 +0000 (22:03 +0530)
committerUze Choi <uzchoi@samsung.com>
Thu, 28 Sep 2017 08:51:25 +0000 (08:51 +0000)
commit65ab778370e2ef6809112ea1cc4727f544fad826
tree7db3295abcb764b72c8b54879ae69ee955e0e35f
parent6fc3961d9b92fbd4342a73d0c2502b37942923d2
Simulator:Fix for static analyzer reported issues

1. Removal of unused variables.
2. Using Map.empty() than Map.size() for optimization.
3. New API simulator_remote_resource::observe added to accept
   query parameters.

Change-Id: I3e8a4ebf3d03694f4f075a5345f1343d9ea453f8
Signed-off-by: Harry <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21237
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Senthil Kumar G S <senthil.gs@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 543d59f964c8b16db34897a4440b74fb9b83a2f3)
service/simulator/examples/client/simulator_client.cpp
service/simulator/inc/simulator_remote_resource.h
service/simulator/java/jni/simulator_remote_resource_jni.cpp
service/simulator/java/jni/simulator_resource_jni.cpp
service/simulator/ramlparser/raml/model/Raml.cpp
service/simulator/ramlparser/raml/model/RamlResource.cpp
service/simulator/ramlparser/raml/model/RamlResource.h
service/simulator/ramlparser/raml/model/RequestResponseBody.h
service/simulator/src/client/simulator_remote_resource_impl.cpp
service/simulator/src/client/simulator_remote_resource_impl.h
service/simulator/src/common/simulator_utils.cpp