File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
crates/matrix-sdk-indexeddb/src/event_cache_store/serializer Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -528,23 +528,6 @@ pub type IndexedEventPositionIndex = usize;
528
528
#[ derive( Debug , Serialize , Deserialize ) ]
529
529
pub struct IndexedEventRelationKey ( IndexedRoomId , IndexedEventId , IndexedRelationType ) ;
530
530
531
- impl IndexedEventRelationKey {
532
- /// Returns an identical key, but with the related event field updated to
533
- /// the given related event. This is helpful when searching for all
534
- /// events which are related to the given event.
535
- pub fn with_related_event_id (
536
- & self ,
537
- related_event_id : & EventId ,
538
- serializer : & IndexeddbSerializer ,
539
- ) -> Self {
540
- let room_id = self . 0 . clone ( ) ;
541
- let related_event_id =
542
- serializer. encode_key_as_string ( keys:: EVENTS_RELATION_RELATED_EVENTS , related_event_id) ;
543
- let relation_type = self . 2 . clone ( ) ;
544
- Self ( room_id, related_event_id, relation_type)
545
- }
546
- }
547
-
548
531
impl IndexedKey < Event > for IndexedEventRelationKey {
549
532
const INDEX : Option < & ' static str > = Some ( keys:: EVENTS_RELATION ) ;
550
533
You can’t perform that action at this time.
0 commit comments