From: jaesick.shin Date: Mon, 29 Aug 2016 04:45:55 +0000 (+0900) Subject: Remove MessagList in Provider side. X-Git-Tag: 1.2.0+RC3~204^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8de9990bc118de9bfe4adb8c037ff2b3a4adab4a;p=platform%2Fupstream%2Fiotivity.git Remove MessagList in Provider side. MessageList is unused in provider side. second patch remove the white space. Change-Id: I078166aa44eaaa0886edab1832536911352abbda Signed-off-by: jaesick.shin Reviewed-on: https://gerrit.iotivity.org/gerrit/11037 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi --- diff --git a/service/notification/src/provider/NSProviderCallbackResponse.c b/service/notification/src/provider/NSProviderCallbackResponse.c index a09f678..93d9ab2 100644 --- a/service/notification/src/provider/NSProviderCallbackResponse.c +++ b/service/notification/src/provider/NSProviderCallbackResponse.c @@ -44,7 +44,7 @@ void NSRegisterSubscribeRequestCb(NSSubscribeRequestCallback subscribeRequestCb) NS_LOG(DEBUG, "NSRegisterSubscribeRequestCb - OUT"); } -void NSRegisterSyncCb(NSProviderSyncInfoCallback syncCb) +void NSRegisterSyncCb(NSProviderSyncInfoCallback syncCb) { NS_LOG(DEBUG, "NSRegisterSyncCb - IN"); g_syncCb = syncCb; diff --git a/service/notification/src/provider/NSProviderInterface.c b/service/notification/src/provider/NSProviderInterface.c index c963a81..f828ff0 100644 --- a/service/notification/src/provider/NSProviderInterface.c +++ b/service/notification/src/provider/NSProviderInterface.c @@ -88,7 +88,6 @@ void NSSetList() pthread_mutex_init(&NSCacheMutex, &NSCacheMutexAttr); NSInitSubscriptionList(); - NSInitMessageList(); NSInitTopicList(); NS_LOG(DEBUG, "NSSetList - OUT"); } @@ -96,7 +95,6 @@ void NSSetList() void NSDestroyList() { NSStorageDestroy(consumerSubList); - NSStorageDestroy(messageList); NSStorageDestroy(consumerTopicList); NSStorageDestroy(registeredTopicList); diff --git a/service/notification/src/provider/NSProviderNotification.c b/service/notification/src/provider/NSProviderNotification.c index 571419e..1b5f893 100644 --- a/service/notification/src/provider/NSProviderNotification.c +++ b/service/notification/src/provider/NSProviderNotification.c @@ -20,17 +20,6 @@ #include "NSProviderNotification.h" -NSResult NSInitMessageList() -{ - NS_LOG(DEBUG, "NSInitMessageList - IN"); - - messageList = NSStorageCreate(); - messageList->cacheType = NS_PROVIDER_CACHE_MESSAGE; - - NS_LOG(DEBUG, "NSInitMessageList - OUT"); - return NS_OK; -} - NSResult NSSetMessagePayload(NSMessage *msg, OCRepPayload** msgPayload) { NS_LOG(DEBUG, "NSSetMessagePayload - IN"); diff --git a/service/notification/src/provider/NSProviderNotification.h b/service/notification/src/provider/NSProviderNotification.h index d8b19d0..e78abb7 100644 --- a/service/notification/src/provider/NSProviderNotification.h +++ b/service/notification/src/provider/NSProviderNotification.h @@ -32,9 +32,6 @@ #include "oic_malloc.h" #include "NSUtil.h" -NSCacheList * messageList; - NSResult NSRegisterResource(); -NSResult NSInitMessageList(); #endif /* _NS_PROVIDER_NOTIFICATION_H_ */