Ver código fonte

Kernel: Remove unused "VGA font" memory region in GraphicsManagement

Andreas Kling 4 anos atrás
pai
commit
5712e46ddc

+ 1 - 2
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())
 {
 }
 

+ 0 - 1
Kernel/Graphics/GraphicsManagement.h

@@ -49,7 +49,6 @@ public:
 private:
     bool determine_and_initialize_graphics_device(const PCI::Address& address, PCI::ID id);
     NonnullRefPtrVector<GraphicsDevice> m_graphics_devices;
-    NonnullOwnPtr<Memory::Region> m_vga_font_region;
     RefPtr<Graphics::Console> m_console;
 
     // Note: there could be multiple VGA adapters, but only one can operate in VGA mode