summaryrefslogtreecommitdiffstats
path: root/src/run.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-24 22:36:09 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-24 23:15:13 -0400
commit2be79f4cd0ee0e89c5cadf5121a8b979391d0d51 (patch)
treeadbd77abb51ea2a4613c78d210896f1ed55b4498 /src/run.rs
parentc3919c91a866a7fd520d7dcb8b99c7d4aafbbb93 (diff)
major refactoring
- removed parent_list from JoshutoTab struct - parent_list will behave much like previewing now where the contents will be retrieved from the dictionary - completely remove DirHistory struct in favour of trait implemenation on top of HashMap
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/run.rs b/src/run.rs
index f9ff6a4..4803b5f 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -141,16 +141,6 @@ fn init_context(context: &mut JoshutoContext, view: &JoshutoView) {
context.curr_tab_index = context.tabs.len() - 1;
{
let curr_tab = &mut context.tabs[context.curr_tab_index];
- if let Some(s) = curr_tab.curr_list.as_mut() {
- if s.need_update() {
- s.update_contents(&context.config_t.sort_option);
- }
- }
- if let Some(s) = curr_tab.parent_list.as_mut() {
- if s.need_update() {
- s.update_contents(&context.config_t.sort_option);
- }
- }
curr_tab.refresh(
view,
&context.config_t,