Skip to content

Commit 593a5ef

Browse files
committed
restructure code
1 parent 860e256 commit 593a5ef

File tree

2 files changed

+193
-316
lines changed

2 files changed

+193
-316
lines changed

src/data/directory_content.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use crate::config::{FileDialogConfig, FileFilter};
2+
use crate::file_dialog::{SortBy, SortOrder};
23
use egui::mutex::Mutex;
34
use std::path::{Path, PathBuf};
45
use std::sync::{mpsc, Arc};
56
use std::time::SystemTime;
67
use std::{fs, io, thread};
7-
use crate::file_dialog::{SortBy, SortOrder};
88

99
/// Contains the metadata of a directory item.
1010
#[derive(Debug, Default, Clone)]
@@ -300,15 +300,6 @@ impl DirectoryContent {
300300
&self.state
301301
}
302302

303-
/// Returns an iterator in the given range of the directory contents.
304-
/// No filters are applied using this iterator.
305-
pub fn iter_range_mut(
306-
&mut self,
307-
range: std::ops::Range<usize>,
308-
) -> impl Iterator<Item = &mut DirectoryEntry> {
309-
self.content[range].iter_mut()
310-
}
311-
312303
/// Returns one directory entry by index
313304
pub fn get(&mut self, i: usize) -> Option<&mut DirectoryEntry> {
314305
self.content.get_mut(i)

0 commit comments

Comments
 (0)