securejoin: remove unused error types related to ongoing processes

securejoin no longer allocates ongoing processes
This commit is contained in:
link2xt
2022-05-15 23:32:41 +00:00
committed by Floris Bruynooghe
parent 1f8b04bd42
commit 47db1349a9

View File

@@ -139,9 +139,6 @@ async fn get_self_fingerprint(context: &Context) -> Option<Fingerprint> {
#[derive(Debug, thiserror::Error)]
pub enum JoinError {
#[error("An \"ongoing\" process is already running")]
OngoingRunning,
#[error("Failed to send handshake message: {0}")]
SendMessage(#[from] SendMsgError),
@@ -150,10 +147,6 @@ pub enum JoinError {
#[error("Unknown contact (this is a bug): {0}")]
UnknownContact(#[source] anyhow::Error),
// Note that this can only occur if we failed to create the chat correctly.
#[error("Ongoing sender dropped (this is a bug)")]
OngoingSenderDropped,
#[error("Other")]
Other(#[from] anyhow::Error),
}