From 1c8d57321c17eeaa4eff2f0f937af6c723cdd094 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 30 Jan 2023 08:50:08 +0100 Subject: [PATCH] chore(sdk): Remove `Flow.timestamp` and `.raw_event`. --- .../src/room/timeline/event_handler.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/crates/matrix-sdk/src/room/timeline/event_handler.rs b/crates/matrix-sdk/src/room/timeline/event_handler.rs index ea00a7253..4022281a8 100644 --- a/crates/matrix-sdk/src/room/timeline/event_handler.rs +++ b/crates/matrix-sdk/src/room/timeline/event_handler.rs @@ -65,22 +65,6 @@ pub(super) enum Flow { }, } -impl Flow { - fn timestamp(&self) -> MilliSecondsSinceUnixEpoch { - match self { - Flow::Local { timestamp, .. } => *timestamp, - Flow::Remote { origin_server_ts, .. } => *origin_server_ts, - } - } - - fn raw_event(&self) -> Option<&Raw> { - match self { - Flow::Local { .. } => None, - Flow::Remote { raw_event, .. } => Some(raw_event), - } - } -} - pub(super) struct TimelineEventMetadata { pub(super) sender: OwnedUserId, pub(super) sender_profile: Profile,