From f7a85401bb611aa4b000a91821fe0159e7affdac Mon Sep 17 00:00:00 2001 From: "Liav A." Date: Sat, 4 May 2024 12:35:40 +0300 Subject: [PATCH] Kernel/Storage: Remove a stale StorageDevice constructor method ramdisk devices are long gone by now, so this is a stale method. --- Kernel/Devices/Storage/StorageDevice.cpp | 9 --------- Kernel/Devices/Storage/StorageDevice.h | 5 ----- 2 files changed, 14 deletions(-) diff --git a/Kernel/Devices/Storage/StorageDevice.cpp b/Kernel/Devices/Storage/StorageDevice.cpp index f94bebec65f..0022d720021 100644 --- a/Kernel/Devices/Storage/StorageDevice.cpp +++ b/Kernel/Devices/Storage/StorageDevice.cpp @@ -27,15 +27,6 @@ StorageDevice::StorageDevice(LUNAddress logical_unit_number_address, u32 hardwar { } -StorageDevice::StorageDevice(Badge, LUNAddress logical_unit_number_address, u32 hardware_relative_controller_id, MajorNumber major, MinorNumber minor, size_t sector_size, u64 max_addressable_block) - : BlockDevice(major, minor, sector_size) - , m_logical_unit_number_address(logical_unit_number_address) - , m_hardware_relative_controller_id(hardware_relative_controller_id) - , m_max_addressable_block(max_addressable_block) - , m_blocks_per_page(PAGE_SIZE / block_size()) -{ -} - ErrorOr StorageDevice::after_inserting() { auto sysfs_storage_device_directory = StorageDeviceSysFSDirectory::create(SysFSStorageDirectory::the(), *this); diff --git a/Kernel/Devices/Storage/StorageDevice.h b/Kernel/Devices/Storage/StorageDevice.h index 496ff82c016..8eea8a1b57d 100644 --- a/Kernel/Devices/Storage/StorageDevice.h +++ b/Kernel/Devices/Storage/StorageDevice.h @@ -15,7 +15,6 @@ namespace Kernel { -class RamdiskDevice; class StorageDevice : public BlockDevice { friend class StorageManagement; friend class DeviceManagement; @@ -86,10 +85,6 @@ public: protected: StorageDevice(LUNAddress, u32 hardware_relative_controller_id, size_t sector_size, u64); - // Note: We want to be able to put distinction between Storage devices and Ramdisk-based devices. - // We do this because it will make selecting ramdisk devices much more easier in boot time in the kernel commandline. - StorageDevice(Badge, LUNAddress, u32 hardware_relative_controller_id, MajorNumber, MinorNumber, size_t sector_size, u64); - // ^DiskDevice virtual StringView class_name() const override;