diff --git a/lib/src/repo.rs b/lib/src/repo.rs index db565ea61..f230544b9 100644 --- a/lib/src/repo.rs +++ b/lib/src/repo.rs @@ -43,25 +43,6 @@ use crate::transaction::Transaction; use crate::view::{RefName, View}; use crate::{backend, op_store}; -#[derive(Debug, Error, PartialEq, Eq)] -pub enum RepoError { - #[error("Object not found")] - NotFound, - #[error("Error: {0}")] - Other(String), -} - -impl From for RepoError { - fn from(err: BackendError) -> Self { - match err { - BackendError::NotFound => RepoError::NotFound, - BackendError::Other(description) => RepoError::Other(description), - } - } -} - -pub type RepoResult = Result; - // TODO: Should we implement From<&ReadonlyRepo> and From<&MutableRepo> for // RepoRef? #[derive(Clone, Copy)]