mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 21:52:30 -04:00
chore: get rid of SlidingSyncListBuilder::reset_ranges
Signed-off-by: Benjamin Bouvier <public@benj.me>
This commit is contained in:
@@ -532,12 +532,6 @@ impl SlidingSyncListBuilder {
|
||||
Arc::new(builder)
|
||||
}
|
||||
|
||||
pub fn reset_ranges(self: Arc<Self>) -> Arc<Self> {
|
||||
let mut builder = unwrap_or_clone_arc(self);
|
||||
builder.inner = builder.inner.reset_ranges();
|
||||
Arc::new(builder)
|
||||
}
|
||||
|
||||
pub fn once_built(self: Arc<Self>, callback: Box<dyn SlidingSyncListOnceBuilt>) -> Arc<Self> {
|
||||
let mut builder = unwrap_or_clone_arc(self);
|
||||
|
||||
|
||||
@@ -154,12 +154,6 @@ impl SlidingSyncListBuilder {
|
||||
self
|
||||
}
|
||||
|
||||
/// Reset the ranges to fetch.
|
||||
pub fn reset_ranges(mut self) -> Self {
|
||||
self.ranges.clear();
|
||||
self
|
||||
}
|
||||
|
||||
/// Marks this list as sync'd from the cache, and attempts to reload it from
|
||||
/// storage.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user