Skip to content

Commit

Permalink
uart: remove function uart_clear_send_queue.
Browse files Browse the repository at this point in the history
It wasn't used.
  • Loading branch information
eriksl committed Jun 16, 2019
1 parent a85c660 commit d94bf6e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,6 @@ iram unsigned int uart_receive(unsigned int uart)
return(queue_pop(&uart_receive_queue));
}

iram void uart_clear_send_queue(unsigned int uart)
{
if(!init_done)
return;

queue_flush(&uart_send_queue[uart]);
}

iram void uart_clear_receive_queue(unsigned int uart)
{
if(!init_done)
Expand Down
1 change: 0 additions & 1 deletion uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ bool uart_full(unsigned int uart);
void uart_send(unsigned int, unsigned int);
void uart_send_string(unsigned int, const string_t *);
void uart_flush(unsigned int);
void uart_clear_send_queue(unsigned int);
bool uart_empty(unsigned int);
unsigned int uart_receive(unsigned int);
void uart_clear_receive_queue(unsigned int);
Expand Down

0 comments on commit d94bf6e

Please sign in to comment.