From 7f78348a4228a8dfa76868f2b41f20e7f29bf00e Mon Sep 17 00:00:00 2001 From: Ginger Date: Sat, 25 Apr 2026 11:03:27 -0400 Subject: [PATCH] refactor: Drop unused MSC3843 endpoint definition --- src/ruminuwuity/policy/mod.rs | 1 - src/ruminuwuity/policy/report_content.rs | 58 ------------------------ 2 files changed, 59 deletions(-) delete mode 100644 src/ruminuwuity/policy/report_content.rs diff --git a/src/ruminuwuity/policy/mod.rs b/src/ruminuwuity/policy/mod.rs index c3950c19b..57c6405e8 100644 --- a/src/ruminuwuity/policy/mod.rs +++ b/src/ruminuwuity/policy/mod.rs @@ -1,4 +1,3 @@ pub mod event; pub mod policy_check; pub mod policy_sign; -pub mod report_content; diff --git a/src/ruminuwuity/policy/report_content.rs b/src/ruminuwuity/policy/report_content.rs deleted file mode 100644 index 3bf8b79d0..000000000 --- a/src/ruminuwuity/policy/report_content.rs +++ /dev/null @@ -1,58 +0,0 @@ -//! `GET /_matrix/federation/*/rooms/{roomId}/report/{eventId}` -//! -//! Send a request to report an event originating from another server. - -pub mod msc3843 { - //! `MSC3843` ([MSC]) - //! - //! [MSC]: https://github.com/matrix-org/matrix-spec-proposals/pull/3843 - - use ruma::{ - OwnedEventId, OwnedRoomId, - api::{federation::authentication::ServerSignatures, request, response}, - metadata, - }; - - metadata! { - method: POST, - rate_limited: false, - authentication: ServerSignatures, - history: { - unstable => "/_matrix/federation/unstable/org.matrix.msc3843/rooms/{room_id}/report/{event_id}", - } - } - - /// Request type for the `report_content` endpoint. - #[request] - pub struct Request { - /// The room ID that the reported event was sent in. - #[ruma_api(path)] - pub room_id: OwnedRoomId, - - /// The event being reported. - #[ruma_api(path)] - pub event_id: OwnedEventId, - - /// The reason that the event is being reported. - pub reason: String, - } - - /// Response type for the `report_content` endpoint. - #[response] - #[derive(Default)] - pub struct Response; - - impl Request { - /// Creates a `Request` with the given room ID, event ID and reason. - #[must_use] - pub fn new(room_id: OwnedRoomId, event_id: OwnedEventId, reason: String) -> Self { - Self { room_id, event_id, reason } - } - } - - impl Response { - /// Creates a new empty `Response`. - #[must_use] - pub fn new() -> Self { Self::default() } - } -}