summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-12-14 14:15:26 +0000
committerLinus Groh <mail@linusgroh.de>2022-12-15 22:04:28 +0000
commit3597f4a4905af014f40121a8739993e1df89cedd (patch)
treee35c72c2564aabb4cab59b2c01a6336d6da171cf /Kernel
parent626142c312fbb3d32a8f481ffa6ac903724cac83 (diff)
downloadserenity-3597f4a4905af014f40121a8739993e1df89cedd.zip
Kernel: Remove Badged `VirtIOGraphicsAdapter::allocate_FOO_id()` methods
These are unused, so let's remove them. `number_of_fixmes--;` :^)
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Graphics/VirtIOGPU/GraphicsAdapter.cpp11
-rw-r--r--Kernel/Graphics/VirtIOGPU/GraphicsAdapter.h3
2 files changed, 0 insertions, 14 deletions
diff --git a/Kernel/Graphics/VirtIOGPU/GraphicsAdapter.cpp b/Kernel/Graphics/VirtIOGPU/GraphicsAdapter.cpp
index 2600dffa39..1c0a37bbed 100644
--- a/Kernel/Graphics/VirtIOGPU/GraphicsAdapter.cpp
+++ b/Kernel/Graphics/VirtIOGPU/GraphicsAdapter.cpp
@@ -161,17 +161,6 @@ void VirtIOGraphicsAdapter::initialize()
}
}
-Graphics::VirtIOGPU::ResourceID VirtIOGraphicsAdapter::allocate_resource_id(Badge<VirtIODisplayConnector>)
-{
- return m_resource_id_counter++;
-}
-
-Graphics::VirtIOGPU::ContextID VirtIOGraphicsAdapter::allocate_context_id(Badge<VirtIODisplayConnector>)
-{
- // FIXME: This should really be tracked using a bitmap, instead of an atomic counter
- return m_context_id_counter++;
-}
-
bool VirtIOGraphicsAdapter::handle_device_config_change()
{
auto events = get_pending_events();
diff --git a/Kernel/Graphics/VirtIOGPU/GraphicsAdapter.h b/Kernel/Graphics/VirtIOGPU/GraphicsAdapter.h
index 7623dd52d8..dc98f9f21c 100644
--- a/Kernel/Graphics/VirtIOGPU/GraphicsAdapter.h
+++ b/Kernel/Graphics/VirtIOGPU/GraphicsAdapter.h
@@ -44,9 +44,6 @@ public:
bool edid_feature_accepted() const;
- Graphics::VirtIOGPU::ResourceID allocate_resource_id(Badge<VirtIODisplayConnector>);
- Graphics::VirtIOGPU::ContextID allocate_context_id(Badge<VirtIODisplayConnector>);
-
ErrorOr<void> mode_set_resolution(Badge<VirtIODisplayConnector>, VirtIODisplayConnector&, size_t width, size_t height);
void set_dirty_displayed_rect(Badge<VirtIODisplayConnector>, VirtIODisplayConnector&, Graphics::VirtIOGPU::Protocol::Rect const& dirty_rect, bool main_buffer);
void flush_displayed_image(Badge<VirtIODisplayConnector>, VirtIODisplayConnector&, Graphics::VirtIOGPU::Protocol::Rect const& dirty_rect, bool main_buffer);