From 809827967687ea7e6b645e7a9a60f9c523250578 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 6 Oct 2020 18:59:23 +0900 Subject: Cleanup --- helix-core/src/transaction.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'helix-core/src/transaction.rs') diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs index 33612ecf..dfb1bbe1 100644 --- a/helix-core/src/transaction.rs +++ b/helix-core/src/transaction.rs @@ -45,12 +45,7 @@ impl ChangeSet { /// In other words, If `this` goes `docA` → `docB` and `other` represents `docB` → `docC`, the /// returned value will represent the change `docA` → `docC`. pub fn compose(self, other: ChangeSet) -> Result { - // TODO: len before should match len after - - // if self.len != other.len { - // // length mismatch - // return Err(()); - // } + // TODO: len before b should match len after a let len = self.changes.len(); @@ -335,9 +330,6 @@ impl ChangeSet { } } -// trait Transaction -// trait StrictTransaction - /// Transaction represents a single undoable unit of changes. Several changes can be grouped into /// a single transaction. #[derive(Debug, Clone)] -- cgit v1.2.3-70-g09d2