@@ -2028,21 +2028,6 @@ private Class<? extends GraphQLSchemaElement> graphQLParentClass(
20282028 if (element instanceof SchemaAppliedDirective ) {
20292029 return GraphQLAppliedDirective .class ;
20302030 }
2031- if (element instanceof SchemaDirective ) {
2032- return GraphQLDirective .class ;
2033- }
2034- if (element instanceof SchemaUnion ) {
2035- return GraphQLUnionType .class ;
2036- }
2037- if (element instanceof SchemaEnum ) {
2038- return GraphQLEnumType .class ;
2039- }
2040- if (element instanceof SchemaScalar ) {
2041- return GraphQLScalarType .class ;
2042- }
2043- if (element instanceof SchemaInputObject ) {
2044- return GraphQLInputObjectType .class ;
2045- }
20462031 return GraphQLSchemaElement .class ;
20472032 }
20482033
@@ -2119,21 +2104,6 @@ private Class<? extends SchemaElement> schemaParentClass(
21192104 if (element instanceof SchemaAppliedDirective ) {
21202105 return SchemaAppliedDirective .class ;
21212106 }
2122- if (element instanceof SchemaDirective ) {
2123- return SchemaDirective .class ;
2124- }
2125- if (element instanceof SchemaUnion ) {
2126- return SchemaUnion .class ;
2127- }
2128- if (element instanceof SchemaEnum ) {
2129- return SchemaEnum .class ;
2130- }
2131- if (element instanceof SchemaScalar ) {
2132- return SchemaScalar .class ;
2133- }
2134- if (element instanceof SchemaInputObject ) {
2135- return SchemaInputObject .class ;
2136- }
21372107 return SchemaElement .class ;
21382108 }
21392109
0 commit comments