Remove redundant argument

Piotr Osiewicz created

Change summary

crates/editor/src/editor.rs  | 1 -
crates/editor/src/element.rs | 1 -
2 files changed, 2 deletions(-)

Detailed changes

crates/editor/src/editor.rs 🔗

@@ -7554,7 +7554,6 @@ impl Editor {
         search_range: Range<Anchor>,
         display_snapshot: &DisplaySnapshot,
         count: usize,
-        theme: &Theme,
     ) -> Vec<RangeInclusive<u32>> {
         let mut results = Vec::new();
         let buffer = &display_snapshot.buffer_snapshot;

crates/editor/src/element.rs 🔗

@@ -1137,7 +1137,6 @@ impl EditorElement {
                         start_anchor..end_anchor,
                         &layout.position_map.snapshot,
                         50000,
-                        &theme,
                     );
                 for row in background_ranges {
                     let start = row.start();