Kernel/Storage: Remove a stale StorageDevice constructor method

ramdisk devices are long gone by now, so this is a stale method.
This commit is contained in:
Liav A. 2024-05-04 12:35:40 +03:00 committed by Andrew Kaster
parent 116f82d21a
commit f7a85401bb
2 changed files with 0 additions and 14 deletions

View file

@ -27,15 +27,6 @@ StorageDevice::StorageDevice(LUNAddress logical_unit_number_address, u32 hardwar
{
}
StorageDevice::StorageDevice(Badge<RamdiskDevice>, 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<void> StorageDevice::after_inserting()
{
auto sysfs_storage_device_directory = StorageDeviceSysFSDirectory::create(SysFSStorageDirectory::the(), *this);

View file

@ -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<RamdiskDevice>, LUNAddress, u32 hardware_relative_controller_id, MajorNumber, MinorNumber, size_t sector_size, u64);
// ^DiskDevice
virtual StringView class_name() const override;