Skip to content

Commit

Permalink
chain: Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
tilacog committed Jul 6, 2021
1 parent 4905b8d commit 9423de1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions chain/ethereum/src/adapter.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use anyhow::Error;
use ethabi::{Error as ABIError, Function, ParamType, Token};
use futures::Future;
use graph::semver::Version;
use mockall::automock;
use mockall::predicate::*;
use std::cmp;
Expand Down Expand Up @@ -656,8 +655,6 @@ pub trait EthereumAdapter: Send + Sync + 'static {
call: EthereumContractCall,
cache: Arc<dyn EthereumCallCache>,
) -> Box<dyn Future<Item = Vec<Token>, Error = EthereumContractCallError> + Send>;

fn api_version(&self) -> Version;
}

#[cfg(test)]
Expand Down
5 changes: 0 additions & 5 deletions chain/ethereum/src/ethereum_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use futures::prelude::*;
use graph::components::transaction_receipt::LightTransactionReceipt;
use graph::data::subgraph::UnifiedMappingApiVersion;
use graph::prelude::StopwatchMetrics;
use graph::semver::Version;
use graph::{
blockchain::{block_stream::BlockWithTriggers, BlockPtr, IngestorError},
prelude::{
Expand Down Expand Up @@ -792,10 +791,6 @@ impl EthereumAdapter {

#[async_trait]
impl EthereumAdapterTrait for EthereumAdapter {
fn api_version(&self) -> Version {
todo!()
}

fn url_hostname(&self) -> &str {
&self.url_hostname
}
Expand Down

0 comments on commit 9423de1

Please sign in to comment.