]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
sandbox: remove os_putc() and os_puts()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 17 Jul 2017 04:08:31 +0000 (13:08 +0900)
committerSimon Glass <sjg@chromium.org>
Fri, 28 Jul 2017 18:02:47 +0000 (12:02 -0600)
They are unused since commit d8c6fb8cedbc ("sandbox: Drop special
case console code for sandbox").

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c
include/os.h

index 7243bfc1b1fdc9b2881323975bfff1d5c61c5a53..22d6aab5348130d2f5dc1b7778051a2facff075a 100644 (file)
@@ -413,17 +413,6 @@ int os_get_filesize(const char *fname, loff_t *size)
        return 0;
 }
 
-void os_putc(int ch)
-{
-       putchar(ch);
-}
-
-void os_puts(const char *str)
-{
-       while (*str)
-               os_putc(*str++);
-}
-
 int os_write_ram_buf(const char *fname)
 {
        struct sandbox_state *state = state_get_current();
index 049b248c5b016fe59e050cac153300202b071889..2bf4bdb1b8369a48b3c3f6ec89d8889b97bd685c 100644 (file)
@@ -240,26 +240,6 @@ const char *os_dirent_get_typename(enum os_dirent_t type);
  */
 int os_get_filesize(const char *fname, loff_t *size);
 
-/**
- * Write a character to the controlling OS terminal
- *
- * This bypasses the U-Boot console support and writes directly to the OS
- * stdout file descriptor.
- *
- * @param ch   Character to write
- */
-void os_putc(int ch);
-
-/**
- * Write a string to the controlling OS terminal
- *
- * This bypasses the U-Boot console support and writes directly to the OS
- * stdout file descriptor.
- *
- * @param str  String to write (note that \n is not appended)
- */
-void os_puts(const char *str);
-
 /**
  * Write the sandbox RAM buffer to a existing file
  *