From b1c09ed61bf67715dacfe16caf4ecbcce6a71db3 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 13 Jun 2024 13:50:50 +0200 Subject: [PATCH] ffi: get rid of `Timeline::latest_event()` It's unlikely to be useful as per the `Timeline` object: rather, callers should make use of `Room::latest_event()`. --- bindings/matrix-sdk-ffi/src/timeline/mod.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bindings/matrix-sdk-ffi/src/timeline/mod.rs b/bindings/matrix-sdk-ffi/src/timeline/mod.rs index 0eec1ca8f..d94602d3a 100644 --- a/bindings/matrix-sdk-ffi/src/timeline/mod.rs +++ b/bindings/matrix-sdk-ffi/src/timeline/mod.rs @@ -572,12 +572,6 @@ impl Timeline { Ok(Arc::new(EventTimelineItem(item))) } - pub async fn latest_event(&self) -> Option> { - let latest_event = self.inner.latest_event().await; - - latest_event.map(|item| Arc::new(EventTimelineItem(item))) - } - /// Redacts an event from the timeline. /// /// Only works for events that exist as timeline items.