diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2024-12-30 12:33:16 -0500 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-12-30 12:33:16 -0500 |
commit | 2f427ffdd129b69b6701c07c55a7fd8eafef8c60 (patch) | |
tree | 723174f9f09e2788751eea8c5b50d5247ff1f851 | |
parent | 736273c49ad78d4285b90d01eaa72baa6438c04b (diff) |
kernel: drivers: vga_text_buffer: Drop unused 'initialized' variable
-rw-r--r-- | kernel/drivers/vga_text_buffer/vga_text_buffer.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/kernel/drivers/vga_text_buffer/vga_text_buffer.c b/kernel/drivers/vga_text_buffer/vga_text_buffer.c index 2de8f81..f9a2528 100644 --- a/kernel/drivers/vga_text_buffer/vga_text_buffer.c +++ b/kernel/drivers/vga_text_buffer/vga_text_buffer.c @@ -28,7 +28,6 @@ uint8_t vga_text_buffer_row; uint8_t vga_text_buffer_column; uint8_t vga_text_buffer_color; uint16_t *vga_text_buffer_buffer; -bool vga_text_buffer_initialized = false; static uint8_t vga_entry_color(vga_color fg, vga_color bg) @@ -50,12 +49,6 @@ vga_entry(unsigned char character, uint8_t color) return (uint16_t) color << 8 | (uint16_t) character; } -bool -vga_text_buffer_is_initialized(void) -{ - return vga_text_buffer_initialized; -} - static void vga_text_buffer_write_entry_at(char c, uint8_t color, uint8_t x, uint8_t y) { @@ -75,8 +68,6 @@ vga_text_buffer_initialize(void) for (uint8_t y = 0; y < VGA_HEIGHT; y++) for (uint8_t x = 0; x < VGA_WIDTH; x++) vga_text_buffer_write_entry_at(' ', vga_text_buffer_color, x, y); - - vga_text_buffer_initialized = true; } void |