remove old function from library.rs

This commit is contained in:
2026-07-28 00:11:02 +02:00
parent b7f08cf6d7
commit 089f215c42
-23
View File
@@ -147,29 +147,6 @@ impl Library {
}
}
/*
fn get_songs() -> Vec<PathBuf> {
let mut songs: Vec<PathBuf> = vec![];
let flacs = WalkDir::new("/mnt/media/music")
.into_iter()
.filter_map(Result::ok)
.filter(|e| {
e.file_type().is_file() && e.path().extension().is_some_and(|ext| ext == "flac")
})
.map(|e| e.into_path());
for path in flacs {
// `path` is a PathBuf
//println!("{}", path.display());
songs.push(path);
}
songs.sort();
songs
}
*/
fn get_songs(library: &Path) -> Vec<PathBuf> {
let mut songs: Vec<PathBuf> = WalkDir::new(library)
.into_iter()