From 3137f025c79749a51d63d8f9a6ee90dc871b061c Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Sat, 1 Jun 2019 16:44:58 +0200 Subject: [PATCH] remove draft commented code --- src/matrix/room/timeline/FragmentIdComparer.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/matrix/room/timeline/FragmentIdComparer.js b/src/matrix/room/timeline/FragmentIdComparer.js index 029c1333..15c2bc08 100644 --- a/src/matrix/room/timeline/FragmentIdComparer.js +++ b/src/matrix/room/timeline/FragmentIdComparer.js @@ -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());