From ed3d9e32def4ef44d19b939af80a6d335285d6dd Mon Sep 17 00:00:00 2001 From: Michael Doronin Date: Wed, 28 Oct 2020 15:45:31 +0300 Subject: [PATCH] Remove dead code --- src/result.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/result.rs b/src/result.rs index a941513..fd0cc04 100644 --- a/src/result.rs +++ b/src/result.rs @@ -28,7 +28,6 @@ pub type Result = result::Result; pub enum Error { NewContext(io::Error), InitContext(io::Error), - AuthCallbackPaniced(Box), NulInPath(ffi::NulError), Io(io::Error), } @@ -40,7 +39,6 @@ impl fmt::Display for Error { Error::InitContext(ref err) => write!(f, "Init context error: {}", err), Error::Io(ref err) => write!(f, "IO error: {}", err), Error::NulInPath(ref err) => write!(f, "NUL in path: {}", err), - Error::AuthCallbackPaniced(ref err) => write!(f, "Auth callback paniced last time: {}", err) } } } @@ -52,7 +50,6 @@ impl error::Error for Error { Error::InitContext(ref err) => err.description(), Error::Io(ref err) => err.description(), Error::NulInPath(ref err) => err.description(), - Error::AuthCallbackPaniced(ref _err) => "panic in auth callback", } } @@ -62,7 +59,6 @@ impl error::Error for Error { Error::InitContext(ref err) => Some(err), Error::Io(ref err) => Some(err), Error::NulInPath(ref err) => Some(err), - Error::AuthCallbackPaniced(ref err) => Some(err.as_ref()), } } }