Skip to content

Commit

Permalink
Remove private JsonCurveType trait
Browse files Browse the repository at this point in the history
This doesn't seem to be serving a purpose.
  • Loading branch information
ramosbugs committed Feb 29, 2024
1 parent e87580c commit ffde16a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/core/jwk/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::core::{crypto, CoreJwsSigningAlgorithm};
use crate::helpers::{deserialize_option_or_none, Base64UrlEncodedBytes};
use crate::types::jwk::JsonCurveType;
use crate::types::jwks::check_key_compatibility;
#[cfg(feature = "jwk-alg")]
use crate::{core::CoreJweContentEncryptionAlgorithm, JsonWebKeyAlgorithm, JsonWebTokenAlgorithm};
Expand Down Expand Up @@ -736,7 +735,6 @@ pub enum CoreJsonCurveType {
#[serde(rename = "Ed25519")]
Ed25519,
}
impl JsonCurveType for CoreJsonWebKeyType {}

/// Usage restriction for a JSON Web key.
#[derive(Clone, Debug, PartialEq, Eq)]
Expand Down
6 changes: 0 additions & 6 deletions src/types/jwk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@ pub trait JsonWebKeyType:
{
}

/// Curve type (e.g., P256).
pub trait JsonCurveType:
Clone + Debug + DeserializeOwned + PartialEq + Serialize + 'static
{
}

/// Allowed key usage.
pub trait JsonWebKeyUse: Debug + DeserializeOwned + Serialize + 'static {
/// Returns true if the associated key may be used for digital signatures, or false otherwise.
Expand Down

0 comments on commit ffde16a

Please sign in to comment.