From 9063aa267a0f7ec1eb07252594a9c638af3b5dc9 Mon Sep 17 00:00:00 2001 From: Jaekyun Lee Date: Thu, 4 Apr 2013 18:21:36 +0900 Subject: [PATCH] Remove unused and dead code Change-Id: I7cfcfceb55f4c4adcf64d259cb8bff5080a8220f --- src/manager/net_nfc_service_se.c | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/src/manager/net_nfc_service_se.c b/src/manager/net_nfc_service_se.c index 2a70b0e..49284db 100755 --- a/src/manager/net_nfc_service_se.c +++ b/src/manager/net_nfc_service_se.c @@ -549,26 +549,8 @@ void net_nfc_service_se_get_atr(net_nfc_request_msg_t *msg) } else if (detail->handle == net_nfc_service_se_get_current_ese_handle()) { - data_s *data = NULL; net_nfc_error_e result = NET_NFC_UNKNOWN_ERROR; - /* TODO : get atr */ -#if 0 - net_nfc_transceive_info_s info; - - info.dev_type = NET_NFC_ISO14443_A_PICC; - if (net_nfc_controller_transceive(detail->handle, &info, &data, &result) == true) - { - if (data != NULL) - { - DEBUG_SERVER_MSG("transceive data received [%d]", data->length); - } - } - else - { - DEBUG_SERVER_MSG("transceive is failed = [%d]", result); - } -#endif if (net_nfc_server_check_client_is_running(msg->client_fd)) { net_nfc_response_get_atr_t resp = { 0, }; @@ -578,20 +560,9 @@ void net_nfc_service_se_get_atr(net_nfc_request_msg_t *msg) resp.user_param = detail->user_param; resp.result = result; - if (data != NULL) - { - DEBUG_SERVER_MSG("send response send apdu msg"); - resp.data.length = data->length; - net_nfc_send_response_msg(msg->client_fd, msg->request_type, - (void *)&resp, sizeof(net_nfc_response_get_atr_t), - data->buffer, data->length, NULL); - } - else - { - DEBUG_SERVER_MSG("send response send apdu msg"); - net_nfc_send_response_msg(msg->client_fd, msg->request_type, - (void *)&resp, sizeof(net_nfc_response_get_atr_t), NULL); - } + DEBUG_SERVER_MSG("send response send apdu msg"); + net_nfc_send_response_msg(msg->client_fd, msg->request_type, + (void *)&resp, sizeof(net_nfc_response_get_atr_t), NULL); } } else -- 2.7.4