From 260dfeb100496b29c6faf1a3467928fdd1a800d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Sun, 13 Mar 2022 12:14:42 +0100 Subject: [PATCH] common: Remove unstable Relations constructor Not manageable with more unstable features --- crates/ruma-common/src/events/relation.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/crates/ruma-common/src/events/relation.rs b/crates/ruma-common/src/events/relation.rs index 0c7ab32b..22aecaff 100644 --- a/crates/ruma-common/src/events/relation.rs +++ b/crates/ruma-common/src/events/relation.rs @@ -78,20 +78,8 @@ pub struct Relations { } impl Relations { - #[cfg(feature = "unstable-msc2677")] - /// Creates a new `Relations` with the given annotation. - /// - /// Without the `unstable-msc-2677` feature, this method doesn't have any - /// parameters. - pub fn new(annotation: Option) -> Self { - Self { annotation } - } - - #[cfg(not(feature = "unstable-msc2677"))] /// Creates a new empty `Relations`. - /// - /// With the `unstable-msc-2677` feature, this method takes an annotation. pub fn new() -> Self { - Self {} + Self::default() } }