From 62b68966b70e1e046c4e5bdfa1dce45f8f54daf8 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 17 May 2021 00:03:42 +0200 Subject: [PATCH] events: Remove accidental duplicate constructor --- crates/ruma-events/src/reaction.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/crates/ruma-events/src/reaction.rs b/crates/ruma-events/src/reaction.rs index 91f59cab..530f610a 100644 --- a/crates/ruma-events/src/reaction.rs +++ b/crates/ruma-events/src/reaction.rs @@ -78,15 +78,3 @@ impl TryFrom for Relation { } } } - -impl ReactionEventContent { - /// Create a new reaction. - /// - /// # Arguments - /// - /// * `event_id` - The id of the event we are reacting to. - /// * `emoji` - The emoji that indicates the reaction that is being applied. - pub fn new(event_id: EventId, emoji: String) -> Self { - ReactionEventContent { relation: Relation { event_id, emoji } } - } -}