Skip to content

Commit

Permalink
Remove old ibc functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Sep 15, 2023
1 parent 7b2e753 commit 044980c
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions packages/std/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,6 @@ impl From<IbcChannelOpenMsg> for IbcChannel {
}
}

/// Note that this serializes as "null".
#[cfg(not(feature = "ibc3"))]
pub type IbcChannelOpenResponse = ();
/// This serializes either as "null" or a JSON object.
#[cfg(feature = "ibc3")]
pub type IbcChannelOpenResponse = Option<Ibc3ChannelOpenResponse>;
Expand Down Expand Up @@ -408,11 +405,6 @@ pub struct IbcPacketReceiveMsg {
}

impl IbcPacketReceiveMsg {
#[cfg(not(feature = "ibc3"))]
pub fn new(packet: IbcPacket) -> Self {
Self { packet }
}

#[cfg(feature = "ibc3")]
pub fn new(packet: IbcPacket, relayer: Addr) -> Self {
Self { packet, relayer }
Expand All @@ -430,14 +422,6 @@ pub struct IbcPacketAckMsg {
}

impl IbcPacketAckMsg {
#[cfg(not(feature = "ibc3"))]
pub fn new(acknowledgement: IbcAcknowledgement, original_packet: IbcPacket) -> Self {
Self {
acknowledgement,
original_packet,
}
}

#[cfg(feature = "ibc3")]
pub fn new(
acknowledgement: IbcAcknowledgement,
Expand All @@ -462,11 +446,6 @@ pub struct IbcPacketTimeoutMsg {
}

impl IbcPacketTimeoutMsg {
#[cfg(not(feature = "ibc3"))]
pub fn new(packet: IbcPacket) -> Self {
Self { packet }
}

#[cfg(feature = "ibc3")]
pub fn new(packet: IbcPacket, relayer: Addr) -> Self {
Self { packet, relayer }
Expand Down

0 comments on commit 044980c

Please sign in to comment.