From 5795bfc809e4de733482f10460102cdbf026c3a3 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 8 Jun 2026 09:55:48 +0200 Subject: [PATCH] Remove unused Rpc trait --- CHANGELOG.md | 2 ++ src/ctap1.rs | 7 ------- src/ctap2.rs | 3 --- src/lib.rs | 5 ----- 4 files changed, 2 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce2a57f..045823d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [Unreleased]: https://github.com/trussed-dev/ctap-types/compare/0.6.0-rc.4...HEAD +- Remove unused `Rpc` trait. + ## [0.6.0-rc.4] 2026-06-01 [0.6.0-rc.4]: https://github.com/trussed-dev/ctap-types/compare/0.6.0-rc.3...0.6.0-rc.4 diff --git a/src/ctap1.rs b/src/ctap1.rs index 9ce3e55..3d67dd3 100644 --- a/src/ctap1.rs +++ b/src/ctap1.rs @@ -255,13 +255,6 @@ pub trait Authenticator { } } -impl crate::Rpc, Response> for A { - /// Dispatches the enum of possible requests into the appropriate trait method. - fn call(&mut self, request: &Request<'_>) -> Result { - self.call_ctap1(request) - } -} - #[cfg(test)] mod tests { use super::*; diff --git a/src/ctap2.rs b/src/ctap2.rs index 9944987..4407606 100644 --- a/src/ctap2.rs +++ b/src/ctap2.rs @@ -503,9 +503,6 @@ pub enum Error { } /// CTAP2 authenticator API -/// -/// Note that all Authenticators automatically implement [`crate::Rpc`] with [`Request`] and -/// [`Response`]. pub trait Authenticator { fn get_info(&mut self) -> get_info::Response; diff --git a/src/lib.rs b/src/lib.rs index dabda54..de1fa6f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -51,8 +51,3 @@ impl Display for TryFromStrError { "invalid enum value".fmt(f) } } - -/// Call a remote procedure with a request, receive a response, maybe. -pub trait Rpc { - fn call(&mut self, request: &Request) -> core::result::Result; -}