summaryrefslogtreecommitdiff
path: root/Kernel/Storage/StorageManagement.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-09-13 23:44:19 +0200
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-09-16 05:39:28 +0000
commit8763dbcccc48690fce6f01ce8166222bd8234a85 (patch)
treed5f6fa0d884b86d9b082e7e5d0c912ac5778391d /Kernel/Storage/StorageManagement.cpp
parent643d2a683b478424847e3e9103dbf5e7c22121f1 (diff)
downloadserenity-8763dbcccc48690fce6f01ce8166222bd8234a85.zip
Everywhere: Remove a bunch of dead write-only variables
LLVM 15 now warns (and thus errors) about this, and there is really no point in keeping them.
Diffstat (limited to 'Kernel/Storage/StorageManagement.cpp')
-rw-r--r--Kernel/Storage/StorageManagement.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Kernel/Storage/StorageManagement.cpp b/Kernel/Storage/StorageManagement.cpp
index d0ac325625..d1648a8b81 100644
--- a/Kernel/Storage/StorageManagement.cpp
+++ b/Kernel/Storage/StorageManagement.cpp
@@ -167,7 +167,6 @@ UNMAP_AFTER_INIT ErrorOr<NonnullOwnPtr<Partition::PartitionTable>> StorageManage
UNMAP_AFTER_INIT void StorageManagement::enumerate_disk_partitions()
{
VERIFY(!m_storage_devices.is_empty());
- size_t device_index = 0;
for (auto& device : m_storage_devices) {
auto partition_table_or_error = try_to_initialize_partition_table(device);
if (partition_table_or_error.is_error())
@@ -180,7 +179,6 @@ UNMAP_AFTER_INIT void StorageManagement::enumerate_disk_partitions()
auto disk_partition = DiskPartition::create(device, generate_partition_minor_number(), partition_metadata.value());
device.add_partition(disk_partition);
}
- device_index++;
}
}