From d758919d480989879c42365fbdd5bd8e81ecde00 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Tue, 10 Sep 2019 08:57:42 -0500 Subject: [PATCH] sys: ring_buffer: remove deprecated sys_ring_buf_* sys_ring_buf_* hasbeen deprecated for at least 2 releases. We can now remove them. Signed-off-by: Kumar Gala --- include/sys/ring_buffer.h | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/include/sys/ring_buffer.h b/include/sys/ring_buffer.h index 42516f63f7f..1a112f92951 100644 --- a/include/sys/ring_buffer.h +++ b/include/sys/ring_buffer.h @@ -156,13 +156,6 @@ static inline void ring_buf_init(struct ring_buf *buf, u32_t size, void *data) } } -/** @deprecated Renamed to ring_buf_init. */ -__deprecated static inline void sys_ring_buf_init(struct ring_buf *buf, - u32_t size, u32_t *data) -{ - ring_buf_init(buf, size, data); -} - /** @brief Determine free space based on ring buffer parameters. * * @note Function for internal use. @@ -208,12 +201,6 @@ static inline void ring_buf_reset(struct ring_buf *buf) memset(&buf->misc, 0, sizeof(buf->misc)); } -/** @deprecated Renamed to ring_buf_is_empty. */ -__deprecated static inline int sys_ring_buf_is_empty(struct ring_buf *buf) -{ - return ring_buf_is_empty(buf); -} - /** * @brief Determine free space in a ring buffer. * @@ -239,12 +226,6 @@ static inline u32_t ring_buf_capacity_get(struct ring_buf *buf) return buf->size - 1; } -/** @deprecated Renamed to ring_buf_space_get. */ -__deprecated static inline int sys_ring_buf_space_get(struct ring_buf *buf) -{ - return ring_buf_space_get(buf); -} - /** * @brief Write a data item to a ring buffer. * @@ -269,15 +250,6 @@ __deprecated static inline int sys_ring_buf_space_get(struct ring_buf *buf) int ring_buf_item_put(struct ring_buf *buf, u16_t type, u8_t value, u32_t *data, u8_t size32); - -/** @deprecated Renamed to ring_buf_item_put. */ -__deprecated static inline int sys_ring_buf_put(struct ring_buf *buf, - u16_t type, u8_t value, - u32_t *data, u8_t size32) -{ - return ring_buf_item_put(buf, type, value, data, size32); -} - /** * @brief Read a data item from a ring buffer. * @@ -305,14 +277,6 @@ __deprecated static inline int sys_ring_buf_put(struct ring_buf *buf, int ring_buf_item_get(struct ring_buf *buf, u16_t *type, u8_t *value, u32_t *data, u8_t *size32); -/** @deprecated Renamed to ring_buf_item_get. */ -__deprecated static inline int sys_ring_buf_get(struct ring_buf *buf, - u16_t *type, u8_t *value, - u32_t *data, u8_t *size32) -{ - return ring_buf_item_get(buf, type, value, data, size32); -} - /** * @brief Allocate buffer for writing data to a ring buffer. *