Skip to content

Commit

Permalink
net/nanocoap: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
kb2ma committed Feb 24, 2019
1 parent d90f022 commit d8ccda5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
13 changes: 0 additions & 13 deletions sys/include/net/nanocoap.h
Original file line number Diff line number Diff line change
Expand Up @@ -949,19 +949,6 @@ static inline size_t coap_opt_put_block2(uint8_t *buf, uint16_t lastonum,
size_t coap_opt_put_uint(uint8_t *buf, uint16_t lastonum, uint16_t onum,
uint32_t value);

/**
* @brief Insert block option into buffer from block struct
*
* @param[in] buf buffer to write to
* @param[in] lastonum last option number (must be < @p option)
* @param[in] block block option attribute struct
* @param[in] option option number (block1 or block2)
*
* @returns amount of bytes written to @p buf
*/
size_t coap_opt_put_block_object(uint8_t *buf, uint16_t lastonum,
coap_block1_t *block, uint16_t option);

/**
* @brief Insert block1 option into buffer in control usage
*
Expand Down
9 changes: 0 additions & 9 deletions sys/net/application_layer/nanocoap/nanocoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,15 +643,6 @@ size_t coap_opt_put_block(uint8_t *buf, uint16_t lastonum, coap_block_slicer_t *
return coap_opt_put_uint(buf, lastonum, option, _slicer2blkopt(slicer, more));
}

size_t coap_opt_put_block_object(uint8_t *buf, uint16_t lastonum,
coap_block1_t *block, uint16_t option)
{
uint32_t blkopt = (block->blknum << 4) | block->szx | (block->more ? 0x8 : 0);
size_t olen = _encode_uint(&blkopt);

return coap_put_option(buf, lastonum, option, (uint8_t *)&blkopt, olen);
}

size_t coap_opt_put_string(uint8_t *buf, uint16_t lastonum, uint16_t optnum,
const char *string, char separator)
{
Expand Down

0 comments on commit d8ccda5

Please sign in to comment.