Remove dead code
This commit is contained in:
parent
26e18a719c
commit
a1932b3607
1 changed files with 0 additions and 2 deletions
|
|
@ -2483,7 +2483,6 @@ impl Tab {
|
||||||
}
|
}
|
||||||
Message::SearchReady(finished) => {
|
Message::SearchReady(finished) => {
|
||||||
if let Some(context) = &mut self.search_context {
|
if let Some(context) = &mut self.search_context {
|
||||||
let mut count = 0;
|
|
||||||
if let Some(items) = &mut self.items_opt {
|
if let Some(items) = &mut self.items_opt {
|
||||||
if finished || context.ready.swap(false, atomic::Ordering::SeqCst) {
|
if finished || context.ready.swap(false, atomic::Ordering::SeqCst) {
|
||||||
let duration = Instant::now();
|
let duration = Instant::now();
|
||||||
|
|
@ -2509,7 +2508,6 @@ impl Tab {
|
||||||
item_from_entry(path, name, metadata, IconSizes::default()),
|
item_from_entry(path, name, metadata, IconSizes::default()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
count += 1;
|
|
||||||
// Ensure that updates make it to the GUI in a timely manner
|
// Ensure that updates make it to the GUI in a timely manner
|
||||||
if !finished && duration.elapsed() >= MAX_SEARCH_LATENCY {
|
if !finished && duration.elapsed() >= MAX_SEARCH_LATENCY {
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue