Skip to content

Commit

Permalink
Remove unnecessary components from ToolApp
Browse files Browse the repository at this point in the history
  • Loading branch information
ljoss17 committed Jan 30, 2025
1 parent fc8a7c0 commit bbfee24
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion tools/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion tools/crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ ibc = { workspace = true }

hermes-cli = { workspace = true }
hermes-cli-components = { workspace = true }
hermes-cosmos-relayer = { workspace = true }
hermes-encoding-components = { workspace = true }
hermes-error = { workspace = true }
hermes-logger = { workspace = true }
Expand Down
13 changes: 0 additions & 13 deletions tools/crates/cli/src/contexts/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use cgp::prelude::*;
use hermes_cli_components::impls::config::get_config_path::GetDefaultConfigField;
use hermes_cli_components::impls::config::load_toml_config::LoadTomlConfig;
use hermes_cli_components::impls::config::save_toml_config::WriteTomlConfig;
use hermes_cli_components::traits::any_counterparty::ProvideAnyCounterparty;
use hermes_cli_components::traits::bootstrap::{
BootstrapLoaderComponent, BootstrapTypeComponent, CanLoadBootstrap,
};
Expand All @@ -25,7 +24,6 @@ use hermes_cli_components::traits::output::{
CanProduceOutput, OutputProducer, OutputTypeComponent,
};
use hermes_cli_components::traits::types::config::{ConfigTypeComponent, HasConfigType};
use hermes_cosmos_relayer::contexts::chain::CosmosChain;
use hermes_error::traits::wrap::CanWrapError;
use hermes_logger::ProvideHermesLogger;
use hermes_logging_components::traits::has_logger::{
Expand Down Expand Up @@ -57,12 +55,8 @@ pub struct ToolApp {

pub struct ToolAppComponents;

pub struct ToolParserComponents;

pub struct ToolCommandRunnerComponents;

pub struct UpdateToolConfig;

impl HasComponents for ToolApp {
type Components = ToolAppComponents;
}
Expand Down Expand Up @@ -115,13 +109,6 @@ delegate_components! {
}
}

impl<App> ProvideAnyCounterparty<App> for ToolAppComponents
where
App: Async,
{
type AnyCounterparty = CosmosChain;
}

impl<Value> OutputProducer<ToolApp, Value> for ToolAppComponents {
fn produce_output(_app: &ToolApp, _value: Value) {}
}
Expand Down

0 comments on commit bbfee24

Please sign in to comment.