From 5fdc1e63666eb01bcfac62701bb54347dfce09c8 Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Thu, 10 Oct 2024 18:11:22 +0700 Subject: [PATCH] clean up dead code --- src/builder.rs | 4 ++-- src/config.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index c4eefe1..7cda868 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -273,7 +273,7 @@ impl Bootloader { Ok(()) } - pub fn cp_grub_bios(&self, chroot: &Path) -> Result<()> { + pub fn cp_grub_bios(&self, _chroot: &Path) -> Result<()> { todo!() } } @@ -521,7 +521,7 @@ impl ImageBuilder for DiskImageBuilder { let (ldp, hdl) = loopdev_with_file(sparse_path)?; // Partition disk - disk.apply(&ldp, arch, uefi)?; + disk.apply(&ldp, arch)?; // Mount partitions to chroot disk.mount_to_chroot(&ldp, chroot)?; diff --git a/src/config.rs b/src/config.rs index 660cd16..b5df9a5 100644 --- a/src/config.rs +++ b/src/config.rs @@ -437,7 +437,7 @@ impl PartitionLayout { Ok(crate::tpl!("fstab.tera" => { PREPEND, entries })) } - pub fn apply(&self, disk: &PathBuf, target_arch: &str, uefi: bool) -> Result<()> { + pub fn apply(&self, disk: &PathBuf, target_arch: &str) -> Result<()> { // This is a destructive operation, so we need to make sure we don't accidentally wipe the wrong disk info!("Applying partition layout to disk: {disk:#?}");