diff --git a/src/libs/kata-sys-util/src/fs.rs b/src/libs/kata-sys-util/src/fs.rs index 1d85fa61cd..32bfafee9d 100644 --- a/src/libs/kata-sys-util/src/fs.rs +++ b/src/libs/kata-sys-util/src/fs.rs @@ -8,7 +8,7 @@ use std::ffi::OsString; use std::fs::{self, File}; use std::io::{Error, Result}; use std::os::unix::io::AsRawFd; -use std::path::{Path, PathBuf}; +use std::path::Path; use std::process::Command; use crate::{eother, sl}; @@ -29,11 +29,6 @@ const FUSE_SUPER_MAGIC: FsType = 0x65735546; // from linux.git/include/uapi/linux/magic.h const OVERLAYFS_SUPER_MAGIC: FsType = 0x794c7630; -/// Get bundle path (current working directory). -pub fn get_bundle_path() -> Result { - std::env::current_dir() -} - /// Get the basename of the canonicalized path pub fn get_base_name>(src: P) -> Result { let s = src.as_ref().canonicalize()?;