@@ -30,15 +30,12 @@ use graph::{
3030 schema:: InputSchema ,
3131} ;
3232use graph:: {
33- data:: subgraph:: {
34- schema:: { DeploymentCreate , SubgraphManifestEntity } ,
35- SubgraphFeature ,
36- } ,
33+ data:: subgraph:: schema:: { DeploymentCreate , SubgraphManifestEntity } ,
3734 util:: backoff:: ExponentialBackoff ,
3835} ;
3936use stable_hash_legacy:: crypto:: SetHasher ;
40- use std:: { collections :: BTreeSet , convert :: TryFrom , ops :: Bound , time :: Duration } ;
41- use std:: { str :: FromStr , sync :: Arc } ;
37+ use std:: sync :: Arc ;
38+ use std:: { convert :: TryFrom , ops :: Bound , time :: Duration } ;
4239
4340use crate :: ForeignServer ;
4441use crate :: { block_range:: BLOCK_RANGE_COLUMN , primary:: Site } ;
@@ -403,24 +400,6 @@ pub fn set_history_blocks(
403400 . map_err ( StoreError :: from)
404401}
405402
406- #[ allow( dead_code) ]
407- pub fn features (
408- conn : & mut PgConnection ,
409- site : & Site ,
410- ) -> Result < BTreeSet < SubgraphFeature > , StoreError > {
411- use subgraph_manifest as sm;
412-
413- let features: Vec < String > = sm:: table
414- . select ( sm:: features)
415- . filter ( sm:: id. eq ( site. id ) )
416- . first ( conn)
417- . unwrap ( ) ;
418- features
419- . iter ( )
420- . map ( |f| SubgraphFeature :: from_str ( f) . map_err ( StoreError :: from) )
421- . collect ( )
422- }
423-
424403/// This migrates subgraphs that existed before the raw_yaml column was added.
425404pub fn set_manifest_raw_yaml (
426405 conn : & mut PgConnection ,
0 commit comments