Skip to content

Commit 42fef16

Browse files
committed
chore: Remove an unused reload method.
1 parent e82cc0f commit 42fef16

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

  • crates/matrix-sdk/src/event_cache/caches/pinned_events

crates/matrix-sdk/src/event_cache/caches/pinned_events/mod.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ use super::{
4747
EventLocation, TimelineVectorDiffs,
4848
event_linked_chunk::{EventLinkedChunk, sort_positions_descending},
4949
lock,
50-
lock::Reload as _,
5150
room::RoomEventCacheLinkedChunkUpdate,
5251
};
5352
use crate::{Room, client::WeakClient, config::RequestConfig, room::WeakRoom};
@@ -760,14 +759,6 @@ impl PinnedEventsCache {
760759

761760
Ok(Some(loaded_events))
762761
}
763-
764-
/// Force to reload the pinned events.
765-
//
766-
// TODO(@hywan): Temporary fix. All the states must be in a single struct behind
767-
// the cross-process lock instead of being dispatched in each cache.
768-
pub(super) async fn reload(&self) -> Result<()> {
769-
self.inner.state.write().await?.reload().await
770-
}
771762
}
772763

773764
impl fmt::Debug for PinnedEventsCache {

0 commit comments

Comments
 (0)