Skip to content

Commit 9c0420d

Browse files
authored
Merge pull request #14 from G36maid/llvm
Remove unused function
2 parents 2ad3517 + 7d84c4c commit 9c0420d

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

kernel/pipe.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,6 @@ static inline uint16_t pipe_free_space_internal(const pipe_t *p)
3434
return (p->mask + 1) - p->used;
3535
}
3636

37-
static inline char pipe_get_byte(pipe_t *p)
38-
{
39-
char val = p->buf[p->head];
40-
p->head = (p->head + 1) & p->mask;
41-
p->used--;
42-
return val;
43-
}
44-
45-
static inline void pipe_put_byte(pipe_t *p, char c)
46-
{
47-
p->buf[p->tail] = c;
48-
p->tail = (p->tail + 1) & p->mask;
49-
p->used++;
50-
}
51-
5237
/* bulk read operation within critical section */
5338
static uint16_t pipe_bulk_read(pipe_t *p, char *dst, uint16_t max_bytes)
5439
{

0 commit comments

Comments
 (0)