Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoheiu committed Jan 11, 2025
1 parent 9b14cc4 commit 1f9a828
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1938,29 +1938,6 @@ fn read_item(entry: fs::DirEntry) -> ItemInfo {
}
}

/// Generate item information from trash directory, in order to use when redoing.
// pub fn sellect_buffer(trash_dir: &PathBuf, vec: &[ItemBuffer]) -> Result<Vec<ItemBuffer>, FxError> {
// let total = vec.len();
// let mut count = 0;
// let mut result = Vec::new();
// for entry in fs::read_dir(trash_dir)? {
// let entry = entry?;
// if vec
// .iter()
// .map(|x| x.file_path.clone())
// .collect::<Vec<PathBuf>>()
// .contains(&entry.path())
// {
// result.push(ItemBuffer::new(&read_item(entry)));
// count += 1;
// if count == total {
// break;
// }
// }
// }
// Ok(result)
// }

/// Check if zoxide is installed.
fn check_zoxide() -> bool {
std::process::Command::new("zoxide")
Expand Down

0 comments on commit 1f9a828

Please sign in to comment.