Skip to content

Commit

Permalink
drivers: uart_console: removed commented code
Browse files Browse the repository at this point in the history
Remove all commented and unused code.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information
nashif committed Jun 25, 2019
1 parent 7635cf8 commit 1034c5e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions drivers/console/uart_console.c
Expand Up @@ -59,25 +59,6 @@ void uart_console_out_debug_hook_install(uart_console_out_debug_hook_t *hook)


#endif /* CONFIG_UART_CONSOLE_DEBUG_SERVER_HOOKS */ #endif /* CONFIG_UART_CONSOLE_DEBUG_SERVER_HOOKS */


#if 0 /* NOTUSED */
/**
*
* @brief Get a character from UART
*
* @return the character or EOF if nothing present
*/

static int console_in(void)
{
unsigned char c;

if (uart_poll_in(uart_console_dev, &c) < 0) {
return EOF;
} else {
return (int)c;
}
}
#endif


#if defined(CONFIG_PRINTK) || defined(CONFIG_STDOUT_CONSOLE) #if defined(CONFIG_PRINTK) || defined(CONFIG_STDOUT_CONSOLE)
/** /**
Expand Down

0 comments on commit 1034c5e

Please sign in to comment.