Commit a8ac7af3 authored by Ravi kumar Veeramally's avatar Ravi kumar Veeramally Committed by Jukka Rissanen
Browse files

net: zoap: Remove unused helper function



Commit "net: zoap: Fix memory overflow issue" fixed and implemented
./well-known/core response in a different way, so this api is not needed
anymore.

Change-Id: I8f945fb5842028be50ecfdef95cbe5da3189a538
Signed-off-by: default avatarRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
parent 79ff5ed5
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -494,16 +494,6 @@ bool zoap_request_is_observe(const struct zoap_packet *request);
 */
uint8_t *zoap_packet_get_payload(struct zoap_packet *pkt, uint16_t *len);

/**
 * @brief Returns the internal buffer of the CoAP packet, appending
 * the COAP_MARKER to the buffer if necessary.
 *
 * @param pkt Packet to get (or insert) the payload
 *
 * @return pointer to the net_buf storing the payload.
 */
struct net_buf *zoap_packet_get_buf(struct zoap_packet *pkt);

/**
 * @brief Sets how much space was used by the payload.
 *
+0 −13
Original line number Diff line number Diff line
@@ -834,19 +834,6 @@ int zoap_packet_set_used(struct zoap_packet *pkt, uint16_t len)
	return 0;
}

struct net_buf *zoap_packet_get_buf(struct zoap_packet *pkt)
{
	uint8_t *str;

	if (!pkt->start) {
		str = net_buf_add(pkt->buf->frags, 1);
		*str = COAP_MARKER;
		pkt->start = str + 1;
	}

	return pkt->buf->frags;
}

int zoap_add_option(struct zoap_packet *pkt, uint16_t code,
		    const void *value, uint16_t len)
{