Skip to content

Commit

Permalink
Remove InternalRepresentation and related methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Mosolgo committed Nov 24, 2021
1 parent 3469bd4 commit 20d39e6
Show file tree
Hide file tree
Showing 41 changed files with 23 additions and 1,680 deletions.
4 changes: 2 additions & 2 deletions cop/development/context_is_passed_cop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class ContextIsPassedCop < RuboCop::Cop::Cop
# These are already context-aware or else not query-related
def_node_matcher :likely_query_specific_receiver?, "
{
(send _ {:irep_node :ast_node :query :context :warden :ctx :query_ctx :query_context})
(lvar {:irep_node :ast_node :query :context :warden :ctx :query_ctx :query_context})
(send _ {:ast_node :query :context :warden :ctx :query_ctx :query_context})
(lvar {:ast_node :query :context :warden :ctx :query_ctx :query_context})
(ivar {:@query :@context :@warden})
(send _ {:introspection_system})
}
Expand Down
2 changes: 0 additions & 2 deletions lib/graphql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def self.scan_with_ragel(graphql_string)
require "graphql/types"
require "graphql/dataloader"
require "graphql/filter"
require "graphql/internal_representation"
require "graphql/directive"
require "graphql/static_validation"
require "graphql/execution"
Expand All @@ -125,7 +124,6 @@ def self.scan_with_ragel(graphql_string)
require "graphql/backtrace"

require "graphql/deprecated_dsl"
require "graphql/authorization"
require "graphql/unauthorized_error"
require "graphql/unauthorized_field_error"
require "graphql/load_application_object_failed_error"
Expand Down
7 changes: 0 additions & 7 deletions lib/graphql/analysis.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
# frozen_string_literal: true
require "graphql/analysis/ast"
require "graphql/analysis/max_query_complexity"
require "graphql/analysis/max_query_depth"
require "graphql/analysis/query_complexity"
require "graphql/analysis/query_depth"
require "graphql/analysis/reducer_state"
require "graphql/analysis/analyze_query"
require "graphql/analysis/field_usage"
98 changes: 0 additions & 98 deletions lib/graphql/analysis/analyze_query.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/graphql/analysis/ast/query_complexity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Analysis
module AST
class QueryComplexity < Analyzer
# State for the query complexity calculation:
# - `complexities_on_type` holds complexity scores for each type in an IRep node
# - `complexities_on_type` holds complexity scores for each type
def initialize(query)
super
@complexities_on_type_by_query = {}
Expand Down
45 changes: 0 additions & 45 deletions lib/graphql/analysis/field_usage.rb

This file was deleted.

26 changes: 0 additions & 26 deletions lib/graphql/analysis/max_query_complexity.rb

This file was deleted.

26 changes: 0 additions & 26 deletions lib/graphql/analysis/max_query_depth.rb

This file was deleted.

88 changes: 0 additions & 88 deletions lib/graphql/analysis/query_complexity.rb

This file was deleted.

43 changes: 0 additions & 43 deletions lib/graphql/analysis/query_depth.rb

This file was deleted.

Loading

0 comments on commit 20d39e6

Please sign in to comment.