From 15f32379bb399e0a8b2928a8de07cd070fb73ee5 Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Mon, 2 May 2022 20:21:06 +0200 Subject: [PATCH] Kernel: Remove UART::{print_num, print_hex} since they are unused --- Kernel/Arch/aarch64/RPi/UART.h | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/Kernel/Arch/aarch64/RPi/UART.h b/Kernel/Arch/aarch64/RPi/UART.h index 5cf56aeecb..037f0a31fe 100644 --- a/Kernel/Arch/aarch64/RPi/UART.h +++ b/Kernel/Arch/aarch64/RPi/UART.h @@ -27,34 +27,6 @@ public: for (size_t i = 0; i < length; ++i) send(*s++); } - void print_num(u64 n) - { - char buf[21]; - int i = 0; - do { - buf[i++] = (n % 10) + '0'; - n /= 10; - } while (n); - for (i--; i >= 0; i--) - send(buf[i]); - } - - void print_hex(u64 n) - { - char buf[17]; - static char const* digits = "0123456789ABCDEF"; - int i = 0; - do { - buf[i++] = digits[n % 16]; - n /= 16; - } while (n); - send(static_cast('0')); - send(static_cast('x')); - buf[16] = '\0'; - for (i--; i >= 0; i--) { - send(buf[i]); - } - } private: UART();