diff --git a/linera-core/src/worker.rs b/linera-core/src/worker.rs index 7aa981a53272..33978a338c7b 100644 --- a/linera-core/src/worker.rs +++ b/linera-core/src/worker.rs @@ -51,7 +51,7 @@ use { }; use crate::{ - chain_worker::{ChainWorkerActor, ChainWorkerConfig, ChainWorkerRequest, ChainWorkerState}, + chain_worker::{ChainWorkerActor, ChainWorkerConfig, ChainWorkerRequest}, data_types::{ChainInfoQuery, ChainInfoResponse, CrossChainRequest}, value_cache::ValueCache, }; @@ -710,21 +710,6 @@ where .await } - /// Creates a [`ChainWorkerState`] instance for a specific chain. - async fn create_chain_worker( - &self, - chain_id: ChainId, - ) -> Result, WorkerError> { - ChainWorkerState::load( - self.chain_worker_config.clone(), - self.storage.clone(), - self.recent_hashed_certificate_values.clone(), - self.recent_hashed_blobs.clone(), - chain_id, - ) - .await - } - /// Sends a request to the [`ChainWorker`] for a [`ChainId`] and waits for the `Response`. async fn query_chain_worker( &self,