Skip to content

Commit

Permalink
rm ConsensusState::into_any from ibc-derive
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Apr 26, 2024
1 parent 76643e2 commit d1edd86
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions ibc-derive/src/consensus_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,9 @@ pub fn consensus_state_derive_impl(ast: DeriveInput, imports: &Imports) -> Token
quote! {timestamp(cs)},
imports,
);
let into_any_impl = delegate_call_in_match(
enum_name,
enum_variants.iter(),
quote! {into_any(cs)},
imports,
);

let CommitmentRoot = imports.commitment_root();
let ConsensusState = imports.consensus_state();
let ProtoAny = imports.any();
let Timestamp = imports.timestamp();

quote! {
Expand All @@ -45,12 +38,6 @@ pub fn consensus_state_derive_impl(ast: DeriveInput, imports: &Imports) -> Token
#(#timestamp_impl),*
}
}

fn into_any(self) -> #ProtoAny {
match self {
#(#into_any_impl),*
}
}
}
}
}
Expand Down

0 comments on commit d1edd86

Please sign in to comment.