From: KIM JungYong Date: Fri, 9 Sep 2016 08:36:29 +0000 (+0900) Subject: Remove unused task type on consumer service. X-Git-Tag: 1.2.0+RC3~151^2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1cc9ef2516388522407f3421afa41063e3afc19;p=platform%2Fupstream%2Fiotivity.git Remove unused task type on consumer service. Named TASK_CONSUMER_GET_TOPIC_LIST task is remove reason by unused. Change-Id: Id65cca0a284a4c0d3f216fc74bc9c0d4bcc4edfa Signed-off-by: KIM JungYong Reviewed-on: https://gerrit.iotivity.org/gerrit/11631 Tested-by: jenkins-iotivity Reviewed-by: Hun-je Yeon Reviewed-by: Uze Choi --- diff --git a/service/notification/src/common/NSConstants.h b/service/notification/src/common/NSConstants.h index 9397444..e7d6160 100644 --- a/service/notification/src/common/NSConstants.h +++ b/service/notification/src/common/NSConstants.h @@ -252,7 +252,6 @@ typedef enum eTaskType TASK_CONSUMER_REQ_TOPIC_URI = 8299, TASK_CONSUMER_REQ_TOPIC_LIST = 8300, TASK_CONSUMER_RECV_TOPIC_LIST = 8031, - TASK_CONSUMER_GET_TOPIC_LIST = 8302, TASK_CONSUMER_SELECT_TOPIC_LIST = 8303, TASK_EVENT_CONNECTED = 9000, diff --git a/service/notification/src/consumer/NSConsumerCommunication.c b/service/notification/src/consumer/NSConsumerCommunication.c index 6dc82ec..7d5fa6c 100644 --- a/service/notification/src/consumer/NSConsumerCommunication.c +++ b/service/notification/src/consumer/NSConsumerCommunication.c @@ -444,8 +444,7 @@ void NSConsumerCommunicationTaskProcessing(NSTask * task) connections = connections->next; } } - else if (task->taskType == TASK_CONSUMER_REQ_TOPIC_LIST - || task->taskType == TASK_CONSUMER_GET_TOPIC_LIST) + else if (task->taskType == TASK_CONSUMER_REQ_TOPIC_LIST) { NSProvider_internal * provider = (NSProvider_internal *)task->taskData; diff --git a/service/notification/src/consumer/NSConsumerScheduler.c b/service/notification/src/consumer/NSConsumerScheduler.c index c7340a9..ff1540b 100644 --- a/service/notification/src/consumer/NSConsumerScheduler.c +++ b/service/notification/src/consumer/NSConsumerScheduler.c @@ -266,11 +266,6 @@ void NSConsumerTaskProcessing(NSTask * task) } case TASK_SEND_SYNCINFO: case TASK_CONSUMER_REQ_TOPIC_LIST: - { - NSConsumerCommunicationTaskProcessing(task); - break; - } - case TASK_CONSUMER_GET_TOPIC_LIST: case TASK_CONSUMER_SELECT_TOPIC_LIST: { NSConsumerCommunicationTaskProcessing(task);