events: Remove duplicate / unused RemoveReplyFallback enum

This commit is contained in:
Jonas Platte 2023-08-24 15:36:56 +02:00
parent 4ac0ae1392
commit b6f915b480
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C

View File

@ -1,19 +1,5 @@
//! Convenience methods and types to sanitize text messages.
/// Whether to remove the [rich reply fallback] while sanitizing.
///
/// [rich reply fallback]: https://spec.matrix.org/latest/client-server-api/#fallbacks-for-rich-replies
#[cfg(feature = "html")]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[allow(clippy::exhaustive_enums)]
pub enum RemoveReplyFallback {
/// Remove the rich reply fallback.
Yes,
/// Don't remove the rich reply fallback.
No,
}
/// Remove the [rich reply fallback] of the given plain text string.
///
/// [rich reply fallback]: https://spec.matrix.org/latest/client-server-api/#fallbacks-for-rich-replies