mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-11 17:33:51 -04:00
chore: get rid of SlidingSync::reset_lists as it's unused
Signed-off-by: Benjamin Bouvier <public@benj.me>
This commit is contained in:
@@ -757,10 +757,6 @@ impl SlidingSync {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn reset_lists(&self) -> Result<(), SlidingSyncError> {
|
||||
self.inner.reset_lists().map_err(Into::into)
|
||||
}
|
||||
|
||||
pub fn sync(&self) -> Arc<TaskHandle> {
|
||||
let inner = self.inner.clone();
|
||||
let client = self.client.clone();
|
||||
|
||||
@@ -632,17 +632,6 @@ impl SlidingSync {
|
||||
pub async fn stop_sync(&self) -> Result<(), Error> {
|
||||
self.inner.internal_channel_send(SlidingSyncInternalMessage::SyncLoopStop).await
|
||||
}
|
||||
|
||||
/// Resets the lists.
|
||||
pub fn reset_lists(&self) -> Result<(), Error> {
|
||||
let lists = self.inner.lists.read().unwrap();
|
||||
|
||||
for list in lists.values() {
|
||||
list.reset()?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl SlidingSyncInner {
|
||||
|
||||
Reference in New Issue
Block a user