From 133fc74fa4870fddf34552e86d141ef52c981eee Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Fri, 6 Sep 2024 21:37:24 +0000 Subject: [PATCH] Remove unused variable. Test: Builds with -Wunused-variable Change-Id: Ibe6c28c8dd510303450f8400ba7d721fd5c44fc3 --- fs_mgr/libsnapshot/scratch_super.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/fs_mgr/libsnapshot/scratch_super.cpp b/fs_mgr/libsnapshot/scratch_super.cpp index 805abf3f9..93c4bbd99 100644 --- a/fs_mgr/libsnapshot/scratch_super.cpp +++ b/fs_mgr/libsnapshot/scratch_super.cpp @@ -98,7 +98,6 @@ bool CleanupScratchOtaMetadataIfPresent(const ISnapshotManager::IDeviceInfo* inf } const auto& opener = info->GetPartitionOpener(); std::string slot_suffix = info->GetSlotSuffix(); - int slot = SlotNumberForSlotSuffix(slot_suffix); // Walk both the slots and clean up metadata related to scratch space from // both the slots. for (auto slot : slots) {