remote-helper: Remove Unused Error Variants

Previous minimization of visibility modifiers enables automated
removal of these unused variants.
This commit is contained in:
Lorenz Leutgeb 2026-02-17 22:40:09 +01:00
parent a69420b9b7
commit 6d2a99e1ae
No known key found for this signature in database
2 changed files with 0 additions and 8 deletions

View File

@ -56,9 +56,6 @@ pub(super) enum Error {
/// I/O error. /// I/O error.
#[error("i/o error: {0}")] #[error("i/o error: {0}")]
Io(#[from] io::Error), Io(#[from] io::Error),
/// A command exited with an error code.
#[error("command '{0}' failed with status {1}")]
CommandFailed(String, i32),
/// Invalid reference name. /// Invalid reference name.
#[error("invalid ref: {0}")] #[error("invalid ref: {0}")]
InvalidRef(#[from] radicle::git::fmt::Error), InvalidRef(#[from] radicle::git::fmt::Error),
@ -98,9 +95,6 @@ pub(super) enum Error {
/// Patch is empty. /// Patch is empty.
#[error("patch commits are already included in the base branch")] #[error("patch commits are already included in the base branch")]
EmptyPatch, EmptyPatch,
/// Missing canonical head.
#[error("the canonical head is missing from your working copy; please pull before pushing")]
MissingCanonicalHead(git::Oid),
/// COB store error. /// COB store error.
#[error(transparent)] #[error(transparent)]
Cob(#[from] radicle::cob::store::Error), Cob(#[from] radicle::cob::store::Error),

View File

@ -14,8 +14,6 @@ pub(crate) enum CanonicalUnrecoverable {
FindObjects(#[from] canonical::error::FindObjectsError), FindObjects(#[from] canonical::error::FindObjectsError),
#[error(transparent)] #[error(transparent)]
HeadsDiverge(#[from] HeadsDiverge), HeadsDiverge(#[from] HeadsDiverge),
#[error("failure while computing canonical reference: {source}")]
Git { source: git::raw::Error },
} }
#[derive(Debug, Error)] #[derive(Debug, Error)]