remove draft commented code

This commit is contained in:
Bruno Windels 2019-06-01 16:44:58 +02:00
parent 447b0aa03c
commit 3137f025c7

View file

@ -141,23 +141,7 @@ export default class FragmentIdComparer {
}
}
}
// maybe actual persistence shouldn't be done here, just allocate fragment ids and sorting
// we need to check here that the fragment we think we are appending to doesn't already have a nextId.
// otherwise we could create a corrupt state (two fragments not pointing at each other).
// allocates a fragment id within the live range, that can be compared to each other without a mapping as they are allocated in chronological order
// appendLiveFragment(txn, previousToken) {
// }
// newFragment(txn, previousToken, nextToken) {
// }
// linkFragments(txn, firstFragmentId, secondFragmentId) {
// }
add(fragment) {
this._fragmentsById[fragment.id] = fragment;
this.rebuild(this._fragmentsById.values());