diff options
| author | hathach <[email protected]> | 2025-12-10 15:25:30 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-12-10 15:25:30 +0700 |
| commit | a165cf26b269efa396667b05f5ccedace9b528ca (patch) | |
| tree | 01025109094bf8f7f29d44644febe3b78716482b /src/common/tusb_fifo.c | |
| parent | fcc300770d9df7fdbefc2f899b63ef8fcb274b80 (diff) | |
remove tu_fifo_discard_n() and its usage
Diffstat (limited to 'src/common/tusb_fifo.c')
| -rw-r--r-- | src/common/tusb_fifo.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/tusb_fifo.c b/src/common/tusb_fifo.c index 1313fc328..1fca1fd32 100644 --- a/src/common/tusb_fifo.c +++ b/src/common/tusb_fifo.c @@ -450,15 +450,6 @@ uint16_t tu_fifo_write_n_access_mode(tu_fifo_t *f, const void *data, uint16_t n, return n; } -uint16_t tu_fifo_discard_n(tu_fifo_t *f, uint16_t n) { - const uint16_t count = tu_min16(n, tu_fifo_count(f)); // limit to available count - ff_lock(f->mutex_rd); - f->rd_idx = advance_index(f->depth, f->rd_idx, count); - ff_unlock(f->mutex_rd); - - return count; -} - //--------------------------------------------------------------------+ // One API //--------------------------------------------------------------------+ |
