Skip to content

Commit 952cf6e

Browse files
committed
store: Remove unused deployment::features
1 parent f7888b1 commit 952cf6e

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

store/postgres/src/deployment.rs

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,12 @@ use graph::{
3030
schema::InputSchema,
3131
};
3232
use graph::{
33-
data::subgraph::{
34-
schema::{DeploymentCreate, SubgraphManifestEntity},
35-
SubgraphFeature,
36-
},
33+
data::subgraph::schema::{DeploymentCreate, SubgraphManifestEntity},
3734
util::backoff::ExponentialBackoff,
3835
};
3936
use 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

4340
use crate::ForeignServer;
4441
use 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.
425404
pub fn set_manifest_raw_yaml(
426405
conn: &mut PgConnection,

0 commit comments

Comments
 (0)