aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/document.rs')
-rw-r--r--helix-view/src/document.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index 93b83da4..388810b1 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -115,19 +115,6 @@ pub struct SavePoint {
/// The view this savepoint is associated with
pub view: ViewId,
revert: Mutex<Transaction>,
- pub text: Rope,
-}
-
-impl SavePoint {
- pub fn cursor(&self) -> usize {
- // we always create transactions with selections
- self.revert
- .lock()
- .selection()
- .unwrap()
- .primary()
- .cursor(self.text.slice(..))
- }
}
pub struct Document {
@@ -1404,7 +1391,6 @@ impl Document {
let savepoint = Arc::new(SavePoint {
view: view.id,
revert: Mutex::new(revert),
- text: self.text.clone(),
});
self.savepoints.push(Arc::downgrade(&savepoint));
savepoint