File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
crates/matrix-sdk/src/event_cache/room Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -94,20 +94,6 @@ impl EventLinkedChunk {
94
94
self . chunks . push_items_back ( events) ;
95
95
}
96
96
97
- /// Remove an empty chunk at the given position.
98
- ///
99
- /// Note: the chunk must either be a gap, or an empty items chunk, and it
100
- /// must NOT be the last one.
101
- ///
102
- /// Returns the next insert position, if any, left after the chunk that has
103
- /// just been removed.
104
- pub fn remove_empty_chunk_at (
105
- & mut self ,
106
- gap : ChunkIdentifier ,
107
- ) -> Result < Option < Position > , Error > {
108
- self . chunks . remove_empty_chunk_at ( gap)
109
- }
110
-
111
97
/// Replace the gap identified by `gap_identifier`, by events.
112
98
///
113
99
/// Because the `gap_identifier` can represent non-gap chunk, this method
@@ -306,7 +292,8 @@ impl EventLinkedChunk {
306
292
self . chunks . push_gap_back ( new_gap) ;
307
293
308
294
if let Some ( prev_chunk_to_remove) = prev_chunk_to_remove {
309
- self . remove_empty_chunk_at ( prev_chunk_to_remove)
295
+ self . chunks
296
+ . remove_empty_chunk_at ( prev_chunk_to_remove)
310
297
. expect ( "we just checked the chunk is there, and it's an empty item chunk" ) ;
311
298
}
312
299
}
You can’t perform that action at this time.
0 commit comments