diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index e5367e54f0..054c34515d 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -539,11 +539,6 @@ impl EditorElement { bounds: RectF, } - struct DiffLayout<'a> { - buffer_row: u32, - last_diff: Option<&'a DiffHunk>, - } - fn diff_quad( hunk: &DiffHunkLayout, gutter_layout: &GutterLayout, @@ -605,11 +600,6 @@ impl EditorElement { } }; - let mut diff_layout = DiffLayout { - buffer_row: scroll_position.y() as u32, - last_diff: None, - }; - let diff_style = &cx.global::().theme.editor.diff.clone(); let show_gutter = matches!( &cx.global::()