Skip to content

Commit 136179b

Browse files
committed
Remove unused functions, as long as there are no debug macros using them.
1 parent 7efe49e commit 136179b

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

tests/host/common/MockUART.cpp

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -407,54 +407,10 @@ uart_has_rx_error(uart_t* uart)
407407
return false;
408408
}
409409

410-
static void
411-
uart_ignore_char(char c)
412-
{
413-
(void) c;
414-
}
415-
416-
static void
417-
uart0_write_char(char c)
418-
{
419-
uart_do_write_char(UART0, c);
420-
}
421-
422-
static void
423-
uart1_write_char(char c)
424-
{
425-
uart_do_write_char(UART1, c);
426-
}
427-
428410
void
429411
uart_set_debug(int uart_nr)
430412
{
431413
(void)uart_nr;
432-
/*
433-
TODO after there are debug log functions in the host emu
434-
435-
s_uart_debug_nr = uart_nr;
436-
void (*func)(char) = NULL;
437-
switch(s_uart_debug_nr)
438-
{
439-
case UART0:
440-
func = &uart0_write_char;
441-
break;
442-
case UART1:
443-
func = &uart1_write_char;
444-
break;
445-
case UART_NO:
446-
default:
447-
func = &uart_ignore_char;
448-
break;
449-
}
450-
451-
if (uart_nr == UART0 || uart_nr == UART1) {
452-
system_set_os_print(1);
453-
} else {
454-
system_set_os_print(0);
455-
}
456-
ets_install_putc1((void *) func);
457-
*/
458414
}
459415

460416
int

0 commit comments

Comments
 (0)