From d37d65614e68db5bba7e602f320074efb09e1ea9 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Wed, 4 Mar 2026 16:14:38 +0100 Subject: [PATCH] refactor(test): remove `MockEndpoint::ok_with_unstable_features` As it's now unused because of the previous commits. --- crates/matrix-sdk/src/test_utils/mocks/mod.rs | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/crates/matrix-sdk/src/test_utils/mocks/mod.rs b/crates/matrix-sdk/src/test_utils/mocks/mod.rs index 258336d67..c47b2667b 100644 --- a/crates/matrix-sdk/src/test_utils/mocks/mod.rs +++ b/crates/matrix-sdk/src/test_utils/mocks/mod.rs @@ -3493,26 +3493,6 @@ impl<'a> MockEndpoint<'a, VersionsEndpoint> { self } - /// Returns a successful `/_matrix/client/versions` request. - /// - /// The response will return some commonly supported versions and unstable - /// features supported by the SDK. - pub fn ok_with_unstable_features(self) -> MatrixMock<'a> { - self.respond_with(ResponseTemplate::new(200).set_body_json(json!({ - "unstable_features": { - "org.matrix.label_based_filtering": true, - "org.matrix.e2e_cross_signing": true, - // Push encrypted events. - "org.matrix.msc4028": true, - // Thread subscriptions. - "org.matrix.msc4306": true, - // Simplified sliding sync. - "org.matrix.simplified_msc3575": true, - }, - "versions": VersionsEndpoint::commonly_supported_versions() - }))) - } - /// Returns a successful `/_matrix/client/versions` request with the given /// versions and unstable features. pub fn ok_custom(