diff options
| author | [email protected] <[email protected]> | 2012-09-30 08:13:53 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-09-30 08:13:53 +0000 |
| commit | c75867fc5fe4b78dac60cf81bbd8bbb65772c215 (patch) | |
| tree | e38a58d1e8e4c00d2a95431820c2611b7868157c | |
| parent | 4f05dd5426c277cd1b14f7d20f678983f88b2c0a (diff) | |
Remove rt_ringbuffer_get_datasize function.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2314 bbd45198-f89e-11dd-88c7-29a3b14d5316
| -rw-r--r-- | components/drivers/src/ringbuffer.c | 12 |
1 files changed, 0 insertions, 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);
-
|
