This commit is contained in:
Julia 2022-10-13 15:23:41 -04:00
parent 16f854b636
commit 8d609959f1

View file

@ -539,11 +539,6 @@ impl EditorElement {
bounds: RectF,
}
struct DiffLayout<'a> {
buffer_row: u32,
last_diff: Option<&'a DiffHunk<u32>>,
}
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::<Settings>().theme.editor.diff.clone();
let show_gutter = matches!(
&cx.global::<Settings>()