From ab5a731160cb57ef3b805eccb842fb7ec9b19341 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Thu, 8 Feb 2024 10:15:02 -0800 Subject: [PATCH] block: vhdx: Remove unused 'struct RegionEntry' This also fixes the following clippy warning on nightly build from cargo fuzz: warning: struct `RegionEntry` is never constructed --> /home/chenb/project/cloud-hypervisor/cloud-hypervisor/block/src/vhdx/vhdx_header.rs:357:8 | 357 | struct RegionEntry { | ^^^^^^^^^^^ | = note: `RegionEntry` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default Signed-off-by: Bo Chen --- block/src/vhdx/vhdx_header.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/block/src/vhdx/vhdx_header.rs b/block/src/vhdx/vhdx_header.rs index 4e1e1cf55..84c5acd2b 100644 --- a/block/src/vhdx/vhdx_header.rs +++ b/block/src/vhdx/vhdx_header.rs @@ -353,12 +353,6 @@ impl RegionTableEntry { } } -#[derive(Clone, Debug)] -struct RegionEntry { - _start: u64, - _end: u64, -} - enum HeaderNo { First, Second,