Skip to content

Commit

Permalink
remove unused request from normalizer
Browse files Browse the repository at this point in the history
Reviewed By: josephsavona

Differential Revision: D22347749

fbshipit-source-id: e8726d9919a56865c0d065a21ea9deb002552771
  • Loading branch information
kassens authored and facebook-github-bot committed Jul 2, 2020
1 parent 5feb813 commit 651ced5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions packages/relay-runtime/store/RelayModernQueryExecutor.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,6 @@ class Executor {
{
getDataID: this._getDataID,
path: [],
request: this._operation.request,
treatMissingFieldsAsNull,
},
);
Expand Down Expand Up @@ -552,7 +551,6 @@ class Executor {
{
getDataID: this._getDataID,
path: moduleImportPayload.path,
request: this._operation.request,
treatMissingFieldsAsNull: this._treatMissingFieldsAsNull,
},
);
Expand Down Expand Up @@ -628,7 +626,6 @@ class Executor {
getDataID: this._getDataID,
treatMissingFieldsAsNull: this._treatMissingFieldsAsNull,
path: [],
request: this._operation.request,
},
);
this._publishQueue.commitPayload(
Expand Down Expand Up @@ -1000,7 +997,6 @@ class Executor {
{
getDataID: this._getDataID,
path: placeholder.path,
request: this._operation.request,
treatMissingFieldsAsNull: this._treatMissingFieldsAsNull,
},
);
Expand Down Expand Up @@ -1215,7 +1211,6 @@ class Executor {
const relayPayload = normalizeResponse(response, selector, typeName, {
getDataID: this._getDataID,
path: [...normalizationPath, responseKey, String(itemIndex)],
request: this._operation.request,
treatMissingFieldsAsNull: this._treatMissingFieldsAsNull,
});
return {
Expand Down
4 changes: 0 additions & 4 deletions packages/relay-runtime/store/RelayResponseNormalizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ import type {
NormalizationSelector,
Record,
RelayResponsePayload,
RequestDescriptor,
} from './RelayStoreTypes';

export type GetDataID = (
Expand All @@ -75,7 +74,6 @@ export type NormalizationOptions = {|
+getDataID: GetDataID,
+treatMissingFieldsAsNull: boolean,
+path?: $ReadOnlyArray<string>,
+request: RequestDescriptor,
|};

/**
Expand Down Expand Up @@ -112,7 +110,6 @@ class RelayResponseNormalizer {
_moduleImportPayloads: Array<ModuleImportPayload>;
_path: Array<string>;
_recordSource: MutableRecordSource;
_request: RequestDescriptor;
_variables: Variables;

constructor(
Expand All @@ -129,7 +126,6 @@ class RelayResponseNormalizer {
this._moduleImportPayloads = [];
this._path = options.path ? [...options.path] : [];
this._recordSource = recordSource;
this._request = options.request;
this._variables = variables;
}

Expand Down

0 comments on commit 651ced5

Please sign in to comment.