summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-05 15:31:39 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-05 15:31:39 +0100
commitef93694d1f3733ddd92114a51005aac37c192117 (patch)
tree9e13834104356727c8d703e8702952c5abe937eb /src/tab.rs
parenta92709acb4ded784a718e5d47dafd51eb24730de (diff)
remove useless methods
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/tab.rs b/src/tab.rs
index 369e3eb..72e5ef2 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -16,6 +16,7 @@ use crate::opener::execute_in_child;
use crate::preview::{Directory, Preview};
use crate::selectable_content::SelectableContent;
use crate::shortcut::Shortcut;
+use crate::sort::SortKind;
use crate::trees::FileSystem;
use crate::users::Users;
use crate::utils::{filename_from_path, row_to_window_index, set_clipboard};
@@ -436,7 +437,7 @@ impl Tab {
self.tree = FileSystem::new(
path,
5,
- self.path_content.sort_kind.clone(),
+ SortKind::tree_default(),
users,
self.show_hidden,
&self.filter,
@@ -541,17 +542,6 @@ impl Tab {
self.tree_select_first_child()
}
- /// Select the previous sibling of the current node.
- pub fn select_prev(&mut self) -> Result<()> {
- self.tree.select_prev();
- Ok(())
- }
-
- /// Select the next sibling of the current node.
- pub fn select_next(&mut self) -> Result<()> {
- self.tree.select_next()
- }
-
/// Copy the selected filename to the clipboard. Only the filename.
pub fn filename_to_clipboard(&self) -> Result<()> {
set_clipboard(