@@ -7,7 +7,6 @@ |
||
7 | 7 | use Drupal\Core\Cache\CacheableMetadata; |
8 | 8 | use Drupal\Core\Cache\CacheableResponseInterface; |
9 | 9 | use Drupal\Core\Cache\RefinableCacheableDependencyInterface; |
10 | -use Drupal\Core\Config\Config; |
|
11 | 10 | use Drupal\Core\DependencyInjection\ContainerInjectionInterface; |
12 | 11 | use Drupal\Core\Render\RenderContext; |
13 | 12 | use Drupal\Core\Render\RendererInterface; |
@@ -15,8 +15,6 @@ |
||
15 | 15 | /** |
16 | 16 | * MaxComplexityQueryVisitor constructor. |
17 | 17 | * |
18 | - * @param int $maxComplexity |
|
19 | - * The allowed maximum complexity. |
|
20 | 18 | */ |
21 | 19 | public function __construct($defaultCost = 1) { |
22 | 20 | $this->defaultCost = $defaultCost; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Drupal\graphql\GraphQL\Execution\Visitor; |
4 | 4 | |
5 | -use Youshido\GraphQL\Exception\ResolveException; |
|
6 | 5 | use Youshido\GraphQL\Field\FieldInterface; |
7 | 6 | |
8 | 7 | class MaxComplexityVisitor implements VisitorInterface { |