Skip to content

Commit d8ccda5

Browse files
committed
net/nanocoap: remove unused function
1 parent d90f022 commit d8ccda5

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

sys/include/net/nanocoap.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -949,19 +949,6 @@ static inline size_t coap_opt_put_block2(uint8_t *buf, uint16_t lastonum,
949949
size_t coap_opt_put_uint(uint8_t *buf, uint16_t lastonum, uint16_t onum,
950950
uint32_t value);
951951

952-
/**
953-
* @brief Insert block option into buffer from block struct
954-
*
955-
* @param[in] buf buffer to write to
956-
* @param[in] lastonum last option number (must be < @p option)
957-
* @param[in] block block option attribute struct
958-
* @param[in] option option number (block1 or block2)
959-
*
960-
* @returns amount of bytes written to @p buf
961-
*/
962-
size_t coap_opt_put_block_object(uint8_t *buf, uint16_t lastonum,
963-
coap_block1_t *block, uint16_t option);
964-
965952
/**
966953
* @brief Insert block1 option into buffer in control usage
967954
*

sys/net/application_layer/nanocoap/nanocoap.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -643,15 +643,6 @@ size_t coap_opt_put_block(uint8_t *buf, uint16_t lastonum, coap_block_slicer_t *
643643
return coap_opt_put_uint(buf, lastonum, option, _slicer2blkopt(slicer, more));
644644
}
645645

646-
size_t coap_opt_put_block_object(uint8_t *buf, uint16_t lastonum,
647-
coap_block1_t *block, uint16_t option)
648-
{
649-
uint32_t blkopt = (block->blknum << 4) | block->szx | (block->more ? 0x8 : 0);
650-
size_t olen = _encode_uint(&blkopt);
651-
652-
return coap_put_option(buf, lastonum, option, (uint8_t *)&blkopt, olen);
653-
}
654-
655646
size_t coap_opt_put_string(uint8_t *buf, uint16_t lastonum, uint16_t optnum,
656647
const char *string, char separator)
657648
{

0 commit comments

Comments
 (0)