diff --git a/.changelog/unreleased/breaking-changes/580-remove-portreader.md b/.changelog/unreleased/breaking-changes/580-remove-portreader.md new file mode 100644 index 000000000..cfd7d59b7 --- /dev/null +++ b/.changelog/unreleased/breaking-changes/580-remove-portreader.md @@ -0,0 +1 @@ +- Remove `ics05_port::context::PortReader` ([#580](https://github.com/cosmos/ibc-rs/issues/580)) diff --git a/crates/ibc/src/core/ics05_port/context.rs b/crates/ibc/src/core/ics05_port/context.rs deleted file mode 100644 index a1bbfb02d..000000000 --- a/crates/ibc/src/core/ics05_port/context.rs +++ /dev/null @@ -1,10 +0,0 @@ -use crate::core::ics05_port::error::PortError; -use crate::core::ics24_host::identifier::PortId; -use crate::core::ics26_routing::context::ModuleId; -use crate::prelude::*; - -/// A context supplying all the necessary read-only dependencies for processing any information regarding a port. -pub trait PortReader { - /// Return the module_id associated with a given port_id - fn lookup_module_by_port(&self, port_id: &PortId) -> Result; -} diff --git a/crates/ibc/src/core/ics05_port/mod.rs b/crates/ibc/src/core/ics05_port/mod.rs index 103464b7f..8f0bbadec 100644 --- a/crates/ibc/src/core/ics05_port/mod.rs +++ b/crates/ibc/src/core/ics05_port/mod.rs @@ -1,5 +1,4 @@ //! ICS 05: Port implementation specifies the allocation scheme used by modules to //! bind to uniquely named ports. -pub mod context; pub mod error;