From 8d609959f1254e217b9cdd636d749f326691f4c5 Mon Sep 17 00:00:00 2001 From: Julia Date: Thu, 13 Oct 2022 15:23:41 -0400 Subject: [PATCH] Clean --- crates/editor/src/element.rs | 10 ---------- 1 file changed, 10 deletions(-) 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::()