chore: get rid of SlidingSyncListBuilder::reset_ranges

Signed-off-by: Benjamin Bouvier <public@benj.me>
This commit is contained in:
Benjamin Bouvier
2023-05-22 16:11:26 +02:00
parent 40a0459cb9
commit dbd491383f
2 changed files with 0 additions and 12 deletions

View File

@@ -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);

View File

@@ -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.
///