Remove unused functions that introduced compilation warnnings.
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 6c785b63e9cfeb6adf5fc2324914d0045a56b575..922d51537b061512554472fc51df00378ee462f9 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 03a0bc7131cca120a44477b851a27d977c03a146..39857a71b50a30544fa4865022651f89c9d23245 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);
-        }
-
 };