From e7b5a4f32b367abdf26c712f74cf0bf6dbed2c99 Mon Sep 17 00:00:00 2001 From: int_szyk Date: Tue, 24 Sep 2019 11:35:52 +0200 Subject: [PATCH] sn_coap_builder: remove unnecessary code. Fixes Coverity issue about unused variable. --- features/frameworks/mbed-coap/source/sn_coap_builder.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/features/frameworks/mbed-coap/source/sn_coap_builder.c b/features/frameworks/mbed-coap/source/sn_coap_builder.c index d34edb0478..bd56051157 100644 --- a/features/frameworks/mbed-coap/source/sn_coap_builder.c +++ b/features/frameworks/mbed-coap/source/sn_coap_builder.c @@ -484,15 +484,6 @@ static uint8_t sn_coap_builder_options_calculate_jump_need(const sn_coap_hdr_s * } } - else { - if (src_coap_msg_ptr->uri_path_ptr != 0) { - previous_option_number = (COAP_OPTION_URI_PATH); - } - - if (src_coap_msg_ptr->content_format != COAP_CT_NONE) { - previous_option_number = (COAP_OPTION_CONTENT_FORMAT); - } - } return needed_space; }