diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-11-11 18:08:45 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-11-11 18:08:45 +0100 |
commit | 379ad1368b2927c4e910eadb2b3e84e736392a38 (patch) | |
tree | c63eb4947203cd23cbde10cd858643add6087b53 | |
parent | 190eec429c4e4c1ae0a9eaf903fc6e31e63109ac (diff) |
remove ufseless func
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | src/fileinfo.rs | 13 |
2 files changed, 4 insertions, 11 deletions
@@ -797,7 +797,7 @@ dependencies = [ [[package]] name = "fm-tui" -version = "0.1.23" +version = "0.1.24" dependencies = [ "anyhow", "cairo-rs", diff --git a/src/fileinfo.rs b/src/fileinfo.rs index 27ad61d..1eb60b9 100644 --- a/src/fileinfo.rs +++ b/src/fileinfo.rs @@ -464,6 +464,9 @@ impl PathContent { _ => Ok(false), } } + + /// Number of files contained in current content. + /// It's not the lenght of `self.content` since it includes `.` and `..`. pub fn true_len(&self) -> usize { match self.path.parent() { Some(_) => self.content.len() - 2, @@ -513,16 +516,6 @@ impl PathContent { self.content.iter().enumerate() } - /// Refresh the existing users. - pub fn refresh_users( - &mut self, - users: &Users, - filter: &FilterKind, - show_hidden: bool, - ) -> Result<()> { - self.reset_files(filter, show_hidden, users) - } - /// Returns the correct index jump target to a flagged files. fn find_jump_index(&self, jump_target: &path::Path) -> Option<usize> { self.content |