From c94feed83d746e71fb030639d740af85162b0763 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 8 Nov 2022 21:03:54 +0900 Subject: core: Move state into the history module --- helix-core/src/state.rs | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 helix-core/src/state.rs (limited to 'helix-core/src/state.rs') diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs deleted file mode 100644 index dcc4b11b..00000000 --- a/helix-core/src/state.rs +++ /dev/null @@ -1,17 +0,0 @@ -use crate::{Rope, Selection}; - -#[derive(Debug, Clone)] -pub struct State { - pub doc: Rope, - pub selection: Selection, -} - -impl State { - #[must_use] - pub fn new(doc: Rope) -> Self { - Self { - doc, - selection: Selection::point(0), - } - } -} -- cgit v1.2.3-70-g09d2