Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove redundant argument

Piotr Osiewicz241d3951b819
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 682974d61fb..0711e5eb024 100644
--- a/crates/editor/src/editor.rs
+++ b/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;
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index 735abbbd13f..c3c8681bcf0 100644
--- a/crates/editor/src/element.rs
+++ b/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();