Skip to content

Commit 90b6b03

Browse files
committed
chain: Remove unused method
1 parent 4905b8d commit 90b6b03

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

chain/ethereum/src/adapter.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use anyhow::Error;
22
use ethabi::{Error as ABIError, Function, ParamType, Token};
33
use futures::Future;
4-
use graph::semver::Version;
54
use mockall::automock;
65
use mockall::predicate::*;
76
use std::cmp;
@@ -656,8 +655,6 @@ pub trait EthereumAdapter: Send + Sync + 'static {
656655
call: EthereumContractCall,
657656
cache: Arc<dyn EthereumCallCache>,
658657
) -> Box<dyn Future<Item = Vec<Token>, Error = EthereumContractCallError> + Send>;
659-
660-
fn api_version(&self) -> Version;
661658
}
662659

663660
#[cfg(test)]

chain/ethereum/src/ethereum_adapter.rs

-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use futures::prelude::*;
55
use graph::components::transaction_receipt::LightTransactionReceipt;
66
use graph::data::subgraph::UnifiedMappingApiVersion;
77
use graph::prelude::StopwatchMetrics;
8-
use graph::semver::Version;
98
use graph::{
109
blockchain::{block_stream::BlockWithTriggers, BlockPtr, IngestorError},
1110
prelude::{
@@ -792,9 +791,6 @@ impl EthereumAdapter {
792791

793792
#[async_trait]
794793
impl EthereumAdapterTrait for EthereumAdapter {
795-
fn api_version(&self) -> Version {
796-
todo!()
797-
}
798794

799795
fn url_hostname(&self) -> &str {
800796
&self.url_hostname

0 commit comments

Comments
 (0)