Merge "Merge remote branch '1.3-rel'(38203e6)"
[iotivity.git] / resource / csdk / stack / src / ocstack.c
index dc4a964..e3b60a9 100644 (file)
@@ -163,8 +163,6 @@ static const char COAP_TCP_SCHEME[] = "coap+tcp:";
 static const char COAPS_TCP_SCHEME[] = "coaps+tcp:";
 static const char CORESPEC[] = "core";
 
-CAAdapterStateChangedCB g_adapterHandler = NULL;
-CAConnectionStateChangedCB g_connectionHandler = NULL;
 // Persistent Storage callback handler for open/read/write/close/unlink
 static OCPersistentStorage *g_PersistentStorageHandler = NULL;
 // Number of users of OCStack, based on the successful calls to OCInit2 prior to OCStop
@@ -6152,10 +6150,9 @@ OCStackResult OC_CALL OCGetHeaderOption(OCHeaderOption* ocHdrOpt, size_t numOpti
 void OCDefaultAdapterStateChangedHandler(CATransportAdapter_t adapter, bool enabled)
 {
     OIC_LOG(DEBUG, TAG, "OCDefaultAdapterStateChangedHandler");
-    if (g_adapterHandler)
-    {
-        g_adapterHandler(adapter, enabled);
-    }
+
+    OC_UNUSED(adapter);
+    OC_UNUSED(enabled);
 
 #ifdef WITH_PRESENCE
     if (presenceResource.handle)
@@ -6170,10 +6167,6 @@ void OCDefaultAdapterStateChangedHandler(CATransportAdapter_t adapter, bool enab
 void OCDefaultConnectionStateChangedHandler(const CAEndpoint_t *info, bool isConnected)
 {
     OIC_LOG(DEBUG, TAG, "OCDefaultConnectionStateChangedHandler");
-    if (g_connectionHandler)
-    {
-       g_connectionHandler(info, isConnected);
-    }
 
 #ifdef WITH_PRESENCE
     if (presenceResource.handle)