diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-08-19 12:52:41 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-08-26 12:59:55 +0200 |
commit | e54c8a135d141fd6bfa84fa9b0aa45d5aeb22c34 (patch) | |
tree | c8663e37131225876045de300becf4e75a48046c | |
parent | a69291515c237a55d6c1e8a01341351ee65a3847 (diff) |
ipc: Remove unused error type.
-rw-r--r-- | ffi/src/error.rs | 8 | ||||
-rw-r--r-- | ipc/src/core.rs | 9 | ||||
-rw-r--r-- | store/src/backend/mod.rs | 7 |
3 files changed, 0 insertions, 24 deletions
diff --git a/ffi/src/error.rs b/ffi/src/error.rs index b00984a1..dc4ab474 100644 --- a/ffi/src/error.rs +++ b/ffi/src/error.rs @@ -3,7 +3,6 @@ use std::io; use sequoia_openpgp as openpgp; -use sequoia_ipc::core as core; use sequoia_net as net; pub use crate::openpgp::error::Status; @@ -15,13 +14,6 @@ trait FromSequoiaError<'a> { impl<'a> FromSequoiaError<'a> for Status { fn from_sequoia_error(e: &'a anyhow::Error) -> Self { - if let Some(e) = e.downcast_ref::<core::Error>() { - return match e { - &core::Error::IoError(_) => - Status::IoError, - } - } - if let Some(e) = e.downcast_ref::<net::Error>() { return match e { net::Error::PolicyViolation(_) => diff --git a/ipc/src/core.rs b/ipc/src/core.rs index cb9abf2c..978d60fd 100644 --- a/ipc/src/core.rs +++ b/ipc/src/core.rs @@ -19,7 +19,6 @@ #![warn(missing_docs)] -use std::io; use std::path::{Path, PathBuf}; /// A `Context` for Sequoia. @@ -238,14 +237,6 @@ impl Config { /// Result type for Sequoia. pub type Result<T> = ::std::result::Result<T, anyhow::Error>; -#[derive(thiserror::Error, Debug)] -/// Errors for Sequoia. -pub enum Error { - /// An `io::Error` occurred. - #[error("{0}")] - IoError(#[from] io::Error), -} - /* IPC policy. */ /// IPC policy for Sequoia. diff --git a/store/src/backend/mod.rs b/store/src/backend/mod.rs index a1ec476e..504a226b 100644 --- a/store/src/backend/mod.rs +++ b/store/src/backend/mod.rs @@ -23,7 +23,6 @@ use tokio_util::compat::Compat; use crate::openpgp::{self, Cert, KeyID, Fingerprint}; use crate::openpgp::parse::Parse; use crate::openpgp::serialize::Serialize; -use sequoia_ipc::core as core; use sequoia_net as net; use sequoia_ipc as ipc; @@ -1298,12 +1297,6 @@ impl From<openpgp::Error> for node::Error { } } -impl From<core::Error> for node::Error { - fn from(_: core::Error) -> Self { - node::Error::SystemError - } -} - impl From<net::Error> for node::Error { fn from(_: net::Error) -> Self { node::Error::SystemError |