Skip to content

Commit

Permalink
remove unused DIRECTIVE_COMPATIBILITY_ALLOWLIST
Browse files Browse the repository at this point in the history
Reviewed By: poteto

Differential Revision: D27396760

fbshipit-source-id: ced66aa319bbf1773b65b9d94e36c11a0677b6ea
  • Loading branch information
kassens authored and facebook-github-bot committed Apr 5, 2021
1 parent 56b0d5c commit 24642d2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use graphql_ir::{
Program, Selection, Transformed, Transformer, Value,
};
use graphql_syntax::OperationKind;
use indexmap::IndexSet;
use interner::{Intern, StringKey};
use lazy_static::lazy_static;
use schema::{InterfaceID, Schema, Type};
Expand All @@ -34,7 +33,6 @@ lazy_static! {
static ref ID_FIELD_NAME: StringKey = "id".intern();
static ref NODE_TYPE_NAME: StringKey = "Node".intern();
static ref VIEWER_TYPE_NAME: StringKey = "Viewer".intern();
static ref DIRECTIVE_COMPATIBILITY_ALLOWLIST: IndexSet<StringKey> = IndexSet::new();
}

pub fn relay_client_component(program: &Program) -> DiagnosticsResult<Program> {
Expand Down Expand Up @@ -251,9 +249,7 @@ impl<'program> RelayClientComponentTransform<'program> {
.directives
.iter()
.filter_map(|directive| {
if !(directive.name.item == *RELAY_CLIENT_COMPONENT_DIRECTIVE_NAME
|| DIRECTIVE_COMPATIBILITY_ALLOWLIST.contains(&directive.name.item))
{
if directive.name.item != *RELAY_CLIENT_COMPONENT_DIRECTIVE_NAME {
Some(directive.name.item)
} else {
None
Expand Down

0 comments on commit 24642d2

Please sign in to comment.