From d189cb6a247f8120467c1baa4bbdfd242fef7fb2 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 14 Aug 2021 09:04:20 +0300 Subject: [PATCH] Kernel/Devices: Remove unnecessary virtual method The is_disk_device method is not being overrided by any class or called by anyone, so let's just remove it. --- Kernel/Devices/Device.h | 1 - 1 file changed, 1 deletion(-) diff --git a/Kernel/Devices/Device.h b/Kernel/Devices/Device.h index c7c4048bff..3a3e8bcfdb 100644 --- a/Kernel/Devices/Device.h +++ b/Kernel/Devices/Device.h @@ -41,7 +41,6 @@ public: virtual String device_name() const = 0; virtual bool is_device() const override { return true; } - virtual bool is_disk_device() const { return false; } static void for_each(Function); static Device* get_device(unsigned major, unsigned minor);