Remove unused JoinProjectError

This commit is contained in:
Antonio Scandurra 2022-12-21 13:10:07 +01:00
parent b0336cd27e
commit b5fb8e6b8b

View file

@ -62,7 +62,6 @@ use std::{
time::Instant,
};
use terminal::{Terminal, TerminalBuilder};
use thiserror::Error;
use util::{defer, post_inc, ResultExt, TryFutureExt as _};
pub use fs::*;
@ -123,18 +122,6 @@ pub struct Project {
_maintain_buffer_languages: Task<()>,
}
#[derive(Error, Debug)]
pub enum JoinProjectError {
#[error("host declined join request")]
HostDeclined,
#[error("host closed the project")]
HostClosedProject,
#[error("host went offline")]
HostWentOffline,
#[error("{0}")]
Other(#[from] anyhow::Error),
}
enum OpenBuffer {
Strong(ModelHandle<Buffer>),
Weak(WeakModelHandle<Buffer>),
@ -457,7 +444,7 @@ impl Project {
languages: Arc<LanguageRegistry>,
fs: Arc<dyn Fs>,
mut cx: AsyncAppContext,
) -> Result<ModelHandle<Self>, JoinProjectError> {
) -> Result<ModelHandle<Self>> {
client.authenticate_and_connect(true, &cx).await?;
let subscription = client.subscribe_to_entity(remote_id);