Skip to content

Commit

Permalink
rm useless impls
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Sep 3, 2024
1 parent 416fc6b commit fc9957f
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions crates/node/api/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,50 +159,6 @@ pub struct FullNodeTypesAdapter<Types, Provider> {
pub provider: PhantomData<Provider>,
}

impl<Types, Provider> FullNodeTypesAdapter<Types, Provider> {
/// Create a new adapter with the configured types.
pub fn new() -> Self {
Self { types: Default::default(), provider: Default::default() }
}
}

impl<Types, Provider> Default for FullNodeTypesAdapter<Types, Provider> {
fn default() -> Self {
Self::new()
}
}

impl<Types, Provider> Clone for FullNodeTypesAdapter<Types, Provider> {
fn clone(&self) -> Self {
Self { types: self.types, provider: self.provider }
}
}

impl<Types, Provider> NodeTypes for FullNodeTypesAdapter<Types, Provider>
where
Types: NodeTypes,
Provider: Send + Sync + Unpin + 'static,
{
type Primitives = Types::Primitives;
type ChainSpec = Types::ChainSpec;
}

impl<Types, Provider> NodeTypesWithEngine for FullNodeTypesAdapter<Types, Provider>
where
Types: NodeTypesWithEngine,
Provider: Send + Sync + Unpin + 'static,
{
type Engine = Types::Engine;
}

impl<Types, Provider> NodeTypesWithDB for FullNodeTypesAdapter<Types, Provider>
where
Types: NodeTypesWithDB,
Provider: Send + Sync + Unpin + 'static,
{
type DB = Types::DB;
}

impl<Types, Provider> FullNodeTypes for FullNodeTypesAdapter<Types, Provider>
where
Types: NodeTypesWithDB,
Expand Down

0 comments on commit fc9957f

Please sign in to comment.