Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,6 @@ where
self
}

pub fn reverse_sorter(mut self, flag: bool) -> Self {
self.batcher.reverse_sorter = flag;
self
}

/// A batch represents the process of retrieving items from all available sources and sorting the filtered items
/// according to user-specified sorters.
///
Expand Down
10 changes: 1 addition & 9 deletions src/launcher/batcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pub struct Batcher<'a, Cushion, UIContext> {

pub(super) batch_size: usize,
pub(super) filter_and: bool,
pub(super) reverse_sorter: bool,

state: BatcherState<Cushion>,
}
Expand All @@ -45,7 +44,6 @@ where

batch_size: 0,
filter_and: true,
reverse_sorter: false,

cusion_to_ui: None,

Expand Down Expand Up @@ -146,13 +144,7 @@ where
Equal => {
continue;
}
ord => {
return if self.reverse_sorter {
ord.reverse()
} else {
ord
};
}
ord => return ord,
}
}

Expand Down
Loading