X Tutup
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions src/main/java/graphql/ExecutionInput.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package graphql;

import graphql.cachecontrol.CacheControl;
import graphql.collect.ImmutableKit;
import graphql.execution.ExecutionId;
import graphql.execution.RawVariables;
Expand Down Expand Up @@ -28,7 +27,6 @@ public class ExecutionInput {
private final RawVariables rawVariables;
private final Map<String, Object> extensions;
private final DataLoaderRegistry dataLoaderRegistry;
private final CacheControl cacheControl;
private final ExecutionId executionId;
private final Locale locale;

Expand All @@ -42,7 +40,6 @@ private ExecutionInput(Builder builder) {
this.root = builder.root;
this.rawVariables = builder.rawVariables;
this.dataLoaderRegistry = builder.dataLoaderRegistry;
this.cacheControl = builder.cacheControl;
this.executionId = builder.executionId;
this.locale = builder.locale != null ? builder.locale : Locale.getDefault(); // always have a locale in place
this.localContext = builder.localContext;
Expand Down Expand Up @@ -119,16 +116,6 @@ public DataLoaderRegistry getDataLoaderRegistry() {
return dataLoaderRegistry;
}

/**
* @return the cache control helper associated with this execution
*
* @deprecated - Apollo has deprecated the Cache Control specification
*/
@Deprecated
@DeprecatedAt("2022-07-26")
public CacheControl getCacheControl() {
return cacheControl;
}

/**
* @return Id that will be/was used to execute this operation.
Expand Down Expand Up @@ -170,7 +157,6 @@ public ExecutionInput transform(Consumer<Builder> builderConsumer) {
.localContext(this.localContext)
.root(this.root)
.dataLoaderRegistry(this.dataLoaderRegistry)
.cacheControl(this.cacheControl)
.variables(this.rawVariables.toMap())
.extensions(this.extensions)
.executionId(this.executionId)
Expand Down Expand Up @@ -229,8 +215,6 @@ public static class Builder {
// dataloader field tracking away.
//
private DataLoaderRegistry dataLoaderRegistry = DataLoaderDispatcherInstrumentationState.EMPTY_DATALOADER_REGISTRY;
@DeprecatedAt("2022-07-26")
private CacheControl cacheControl = CacheControl.newCacheControl();
private Locale locale = Locale.getDefault();
private ExecutionId executionId;

Expand Down Expand Up @@ -399,13 +383,6 @@ public Builder dataLoaderRegistry(DataLoaderRegistry dataLoaderRegistry) {
return this;
}

@Deprecated
@DeprecatedAt("2022-07-26")
public Builder cacheControl(CacheControl cacheControl) {
this.cacheControl = assertNotNull(cacheControl);
return this;
}

public ExecutionInput build() {
return new ExecutionInput(this);
}
Expand Down
222 changes: 0 additions & 222 deletions src/main/java/graphql/cachecontrol/CacheControl.java

This file was deleted.

1 change: 0 additions & 1 deletion src/main/java/graphql/execution/Execution.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public CompletableFuture<ExecutionResult> execute(Document document, GraphQLSche
.document(document)
.operationDefinition(operationDefinition)
.dataLoaderRegistry(executionInput.getDataLoaderRegistry())
.cacheControl(executionInput.getCacheControl())
.locale(executionInput.getLocale())
.valueUnboxer(valueUnboxer)
.executionInput(executionInput)
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/graphql/execution/ExecutionContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import graphql.GraphQLContext;
import graphql.GraphQLError;
import graphql.PublicApi;
import graphql.cachecontrol.CacheControl;
import graphql.collect.ImmutableKit;
import graphql.execution.instrumentation.Instrumentation;
import graphql.execution.instrumentation.InstrumentationState;
Expand Down Expand Up @@ -52,7 +51,6 @@ public class ExecutionContext {
private final AtomicReference<ImmutableList<GraphQLError>> errors = new AtomicReference<>(ImmutableKit.emptyList());
private final Set<ResultPath> errorPaths = new HashSet<>();
private final DataLoaderRegistry dataLoaderRegistry;
private final CacheControl cacheControl;
private final Locale locale;
private final ValueUnboxer valueUnboxer;
private final ExecutionInput executionInput;
Expand All @@ -74,7 +72,6 @@ public class ExecutionContext {
this.root = builder.root;
this.instrumentation = builder.instrumentation;
this.dataLoaderRegistry = builder.dataLoaderRegistry;
this.cacheControl = builder.cacheControl;
this.locale = builder.locale;
this.valueUnboxer = builder.valueUnboxer;
this.errors.set(builder.errors);
Expand Down Expand Up @@ -166,12 +163,6 @@ public DataLoaderRegistry getDataLoaderRegistry() {
return dataLoaderRegistry;
}

@Deprecated
@DeprecatedAt("2022-07-26")
public CacheControl getCacheControl() {
return cacheControl;
}

public Locale getLocale() {
return locale;
}
Expand Down
10 changes: 0 additions & 10 deletions src/main/java/graphql/execution/ExecutionContextBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import graphql.GraphQLError;
import graphql.Internal;
import graphql.PublicApi;
import graphql.cachecontrol.CacheControl;
import graphql.collect.ImmutableKit;
import graphql.execution.instrumentation.Instrumentation;
import graphql.execution.instrumentation.InstrumentationState;
Expand Down Expand Up @@ -42,7 +41,6 @@ public class ExecutionContextBuilder {
CoercedVariables coercedVariables = CoercedVariables.emptyVariables();
ImmutableMap<String, FragmentDefinition> fragmentsByName = ImmutableKit.emptyMap();
DataLoaderRegistry dataLoaderRegistry;
CacheControl cacheControl;
Locale locale;
ImmutableList<GraphQLError> errors = emptyList();
ValueUnboxer valueUnboxer;
Expand Down Expand Up @@ -89,7 +87,6 @@ public ExecutionContextBuilder() {
coercedVariables = other.getCoercedVariables();
fragmentsByName = ImmutableMap.copyOf(other.getFragmentsByName());
dataLoaderRegistry = other.getDataLoaderRegistry();
cacheControl = other.getCacheControl();
locale = other.getLocale();
errors = ImmutableList.copyOf(other.getErrors());
valueUnboxer = other.getValueUnboxer();
Expand Down Expand Up @@ -194,13 +191,6 @@ public ExecutionContextBuilder dataLoaderRegistry(DataLoaderRegistry dataLoaderR
return this;
}

@Deprecated
@DeprecatedAt("2022-07-26")
public ExecutionContextBuilder cacheControl(CacheControl cacheControl) {
this.cacheControl = cacheControl;
return this;
}

public ExecutionContextBuilder locale(Locale locale) {
this.locale = locale;
return this;
Expand Down
Loading
X Tutup