Skip to content

Commit bad8462

Browse files
committed
Remove unused _thmelines arg from apply_state_diff_if_needed
1 parent b2200c9 commit bad8462

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

crates/utils/re_int_histogram/src/tree.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,7 @@ impl SparseLeaf {
707707

708708
fn max_key_before(&self, time: u64) -> Option<u64> {
709709
// Addresses are sorted, so iterate backwards to find the largest one < time
710-
for &addr in self.addrs.iter().rev() {
711-
if addr < time {
712-
return Some(addr);
713-
}
714-
}
715-
None
710+
self.addrs.iter().rev().find(|&&addr| addr < time).copied()
716711
}
717712

718713
fn range_count(&self, range: RangeU64) -> u64 {

crates/viewer/re_viewer_context/src/time_control.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,6 @@ impl TimeControl {
674674
TimeControlResponse::no_repaint(), // ui will wake up when more data arrives
675675
should_diff_state,
676676
time_histogram_per_timeline,
677-
timelines,
678677
old_timeline,
679678
old_playing,
680679
old_state,
@@ -741,7 +740,6 @@ impl TimeControl {
741740
TimeControlResponse::new(needs_repaint),
742741
should_diff_state,
743742
time_histogram_per_timeline,
744-
timelines,
745743
old_timeline,
746744
old_playing,
747745
old_state,
@@ -754,7 +752,6 @@ impl TimeControl {
754752
response: TimeControlResponse,
755753
should_diff_state: bool,
756754
time_histogram_per_timeline: &TimeHistogramPerTimeline,
757-
_timelines: &std::collections::BTreeMap<TimelineName, Timeline>,
758755
old_timeline: Timeline,
759756
old_playing: bool,
760757
old_state: Option<TimeState>,

0 commit comments

Comments
 (0)