Skip to content

Commit 78cb478

Browse files
committed
efi: remove unused function
1 parent 83a6dee commit 78cb478

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/efi.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -58,28 +58,6 @@ pub(crate) struct Efi {
5858
}
5959

6060
impl Efi {
61-
fn esp_path(&self) -> Result<PathBuf> {
62-
self.ensure_mounted_esp(Path::new("/"))
63-
.map(|v| v.join("EFI"))
64-
}
65-
66-
fn open_esp_optional(&self) -> Result<Option<openat::Dir>> {
67-
if !is_efi_booted()? && self.get_esp_device().is_none() {
68-
log::debug!("Skip EFI");
69-
return Ok(None);
70-
}
71-
let sysroot = openat::Dir::open("/")?;
72-
let esp = sysroot.sub_dir_optional(&self.esp_path()?)?;
73-
Ok(esp)
74-
}
75-
76-
fn open_esp(&self) -> Result<openat::Dir> {
77-
self.ensure_mounted_esp(Path::new("/"))?;
78-
let sysroot = openat::Dir::open("/")?;
79-
let esp = sysroot.sub_dir(&self.esp_path()?)?;
80-
Ok(esp)
81-
}
82-
8361
fn get_esp_device(&self) -> Option<PathBuf> {
8462
let esp_devices = [COREOS_ESP_PART_LABEL, ANACONDA_ESP_PART_LABEL]
8563
.into_iter()

0 commit comments

Comments
 (0)