common: Remove unstable Relations constructor

Not manageable with more unstable features
This commit is contained in:
Kévin Commaille 2022-03-13 12:14:42 +01:00 committed by Jonas Platte
parent 77ce26701c
commit 260dfeb100

View File

@ -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<AnnotationChunk>) -> 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()
}
}