From c75867fc5fe4b78dac60cf81bbd8bbb65772c215 Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Sun, 30 Sep 2012 08:13:53 +0000 Subject: [PATCH] Remove rt_ringbuffer_get_datasize function. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2314 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/drivers/src/ringbuffer.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/components/drivers/src/ringbuffer.c b/components/drivers/src/ringbuffer.c index cc6484aed8..0b1bee1906 100644 --- a/components/drivers/src/ringbuffer.c +++ b/components/drivers/src/ringbuffer.c @@ -146,15 +146,3 @@ rt_size_t rt_ringbuffer_getchar(struct rt_ringbuffer* rb, rt_uint8_t *ch) } RTM_EXPORT(rt_ringbuffer_getchar); -/** - * get available data size - */ -rt_size_t rt_ringbuffer_get_datasize(struct rt_ringbuffer* rb) -{ - RT_ASSERT(rb != RT_NULL); - - /* return the available size */ - return rb->write_index - rb->read_index; -} -RTM_EXPORT(rt_data_queue_reset); -