File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
model-datastructure/src/commonMain/kotlin/org/modelix/model/operations Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -44,18 +44,7 @@ class OTBranch(
44
44
}
45
45
46
46
@Deprecated(" renamed to getPendingChanges()" , ReplaceWith (" getPendingChanges()" ))
47
- val operationsAndTree: Pair <List <IAppliedOperation >, ITree >
48
- get() {
49
- return runSynchronized(completedChanges) {
50
- val result = when (completedChanges.size) {
51
- 0 -> emptyList<IAppliedOperation >() to computeReadT { it.tree }
52
- 1 -> completedChanges[0 ]
53
- else -> completedChanges.flatMap { it.first } to completedChanges.last().second
54
- }
55
- completedChanges.clear()
56
- result
57
- }
58
- }
47
+ val operationsAndTree: Pair <List <IAppliedOperation >, ITree > get() = getPendingChanges()
59
48
60
49
/* *
61
50
* @return the operations applied to the branch since the last call of this function and the resulting ITree.
You can’t perform that action at this time.
0 commit comments