Remove rt_ringbuffer_get_datasize function.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2314 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2012-09-30 08:13:53 +00:00
parent 4f05dd5426
commit c75867fc5f
1 changed files with 0 additions and 12 deletions

View File

@ -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);