Remove unused functions that introduced compilation warnnings. 57/14857/2
authorZiran Sun <ziran.sun@samsung.com>
Mon, 28 Nov 2016 15:24:26 +0000 (15:24 +0000)
committerUze Choi <uzchoi@samsung.com>
Wed, 30 Nov 2016 04:22:18 +0000 (04:22 +0000)
These functions were initially introduced for a test that had been
removed at a later stage.

Change-Id: I5bd5f0f4cae38627b34b8cd7a14d8ea99b7f5435
Signed-off-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14857
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/resource-container/src/RemoteResourceUnit.cpp
service/resource-container/unittests/ResourceContainerTestSimulator.h

index 6c785b6..922d515 100644 (file)
@@ -72,19 +72,6 @@ RemoteResourceUnit::Ptr RemoteResourceUnit::createRemoteResourceInfo(
     return retRemoteResourceUnit;
 }
 
-RemoteResourceUnit::Ptr RemoteResourceUnit::createRemoteResourceInfoWithStateCB(
-    RCSRemoteResourceObject::Ptr ptr, UpdatedCBFromServer updatedCB,
-    RCSRemoteResourceObject::StateChangedCallback stateCB)
-{
-    RemoteResourceUnit::Ptr retRemoteResourceUnit = std::make_shared<RemoteResourceUnit>();
-    retRemoteResourceUnit->remoteObject = ptr;
-    retRemoteResourceUnit->pUpdatedCB = updatedCB;
-
-    retRemoteResourceUnit->pStateChangedCB = stateCB;
-
-    return retRemoteResourceUnit;
-}
-
 RemoteResourceUnit::Ptr RemoteResourceUnit::createRemoteResourceInfoWithCacheCB(
     RCSRemoteResourceObject::Ptr ptr, UpdatedCBFromServer updatedCB,
     RCSRemoteResourceObject::CacheUpdatedCallback cacheCB)
index 03a0bc7..39857a7 100644 (file)
@@ -191,14 +191,4 @@ class ResourceContainerTestSimulator
             std::this_thread::sleep_for(interval);
         }
 
-        void ChangeResourceState()
-        {
-            std::chrono::milliseconds interval(DEFAULT_WAITTIME);
-            if (server != nullptr)
-            {
-                server = nullptr;
-            }
-            std::this_thread::sleep_for(interval);
-        }
-
 };