Browse Source

Kernel: Remove now unused StorageDevice constructor

Brian Gianforcaro 3 years ago
parent
commit
54a2aaaa6f
2 changed files with 0 additions and 9 deletions
  1. 0 8
      Kernel/Storage/StorageDevice.cpp
  2. 0 1
      Kernel/Storage/StorageDevice.h

+ 0 - 8
Kernel/Storage/StorageDevice.cpp

@@ -13,14 +13,6 @@
 
 namespace Kernel {
 
-StorageDevice::StorageDevice(const StorageController& controller, size_t sector_size, u64 max_addressable_block, NonnullOwnPtr<KString> device_name)
-    : BlockDevice(StorageManagement::major_number(), StorageManagement::minor_number(), sector_size)
-    , m_storage_controller(controller)
-    , m_device_name(move(device_name))
-    , m_max_addressable_block(max_addressable_block)
-{
-}
-
 StorageDevice::StorageDevice(const StorageController& controller, int major, int minor, size_t sector_size, u64 max_addressable_block, NonnullOwnPtr<KString> device_name)
     : BlockDevice(major, minor, sector_size)
     , m_storage_controller(controller)

+ 0 - 1
Kernel/Storage/StorageDevice.h

@@ -34,7 +34,6 @@ public:
     NonnullRefPtrVector<DiskPartition> partitions() const { return m_partitions; }
 
 protected:
-    StorageDevice(const StorageController&, size_t, u64, NonnullOwnPtr<KString>);
     StorageDevice(const StorageController&, int, int, size_t, u64, NonnullOwnPtr<KString>);
     // ^DiskDevice
     virtual StringView class_name() const override;