From 28882869caea269ba531ca592bd37e3eeacdc346 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 27 Jun 2024 15:43:04 +0200 Subject: [PATCH] sdk: remove `Error::InconsistentState` as it was unused --- crates/matrix-sdk/CHANGELOG.md | 2 ++ crates/matrix-sdk/src/error.rs | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/matrix-sdk/CHANGELOG.md b/crates/matrix-sdk/CHANGELOG.md index 6454a206811..2875cd1c1ad 100644 --- a/crates/matrix-sdk/CHANGELOG.md +++ b/crates/matrix-sdk/CHANGELOG.md @@ -17,6 +17,8 @@ Breaking changes: - `AttachmentConfig::generate_thumbnail` takes a `ThumbnailFormat`. - The `HttpError::UnableToCloneRequest` error variant has been removed because it was never used or generated by the SDK. +- The `Error::InconsistentState` error variant has been removed because it was never used or + generated by the SDK. Additions: diff --git a/crates/matrix-sdk/src/error.rs b/crates/matrix-sdk/src/error.rs index 0e1041a5066..93389d0993a 100644 --- a/crates/matrix-sdk/src/error.rs +++ b/crates/matrix-sdk/src/error.rs @@ -302,11 +302,6 @@ pub enum Error { #[error("wrong room state: {0}")] WrongRoomState(WrongRoomState), - /// The client is in inconsistent state. This happens when we set a room to - /// a specific type, but then cannot get it in this type. - #[error("The internal client state is inconsistent.")] - InconsistentState, - /// Session callbacks have been set multiple times. #[error("session callbacks have been set multiple times")] MultipleSessionCallbacks,