From 5712e46ddcaa6251ae079e7f95ac0f7d5e147b3e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 8 Aug 2021 10:42:45 +0200 Subject: [PATCH] Kernel: Remove unused "VGA font" memory region in GraphicsManagement --- Kernel/Graphics/GraphicsManagement.cpp | 3 +-- Kernel/Graphics/GraphicsManagement.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Kernel/Graphics/GraphicsManagement.cpp b/Kernel/Graphics/GraphicsManagement.cpp index 4981641920..a3607dcbcc 100644 --- a/Kernel/Graphics/GraphicsManagement.cpp +++ b/Kernel/Graphics/GraphicsManagement.cpp @@ -32,8 +32,7 @@ bool GraphicsManagement::is_initialized() } UNMAP_AFTER_INIT GraphicsManagement::GraphicsManagement() - : m_vga_font_region(MM.allocate_kernel_region(PAGE_SIZE, "VGA font", Memory::Region::Access::ReadWrite, AllocationStrategy::AllocateNow).release_nonnull()) - , m_framebuffer_devices_allowed(!kernel_command_line().is_no_framebuffer_devices_mode()) + : m_framebuffer_devices_allowed(!kernel_command_line().is_no_framebuffer_devices_mode()) { } diff --git a/Kernel/Graphics/GraphicsManagement.h b/Kernel/Graphics/GraphicsManagement.h index ebfda332ee..7eb887ba85 100644 --- a/Kernel/Graphics/GraphicsManagement.h +++ b/Kernel/Graphics/GraphicsManagement.h @@ -49,7 +49,6 @@ public: private: bool determine_and_initialize_graphics_device(const PCI::Address& address, PCI::ID id); NonnullRefPtrVector m_graphics_devices; - NonnullOwnPtr m_vga_font_region; RefPtr m_console; // Note: there could be multiple VGA adapters, but only one can operate in VGA mode