Skip to content

Commit

Permalink
remove legacy flow generation
Browse files Browse the repository at this point in the history
Summary:
For a while we only generated legacy style flow types only for a whitelist. This
can finally be removed and unified on one flow generation.

Reviewed By: leebyron

Differential Revision: D5841044

fbshipit-source-id: 78a781ea77431bd73fa79f107f694c8b9c0b6c8e
  • Loading branch information
kassens authored and facebook-github-bot committed Sep 19, 2017
1 parent cc765f5 commit 8cf10b9
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 1,655 deletions.
16 changes: 0 additions & 16 deletions packages/relay-compiler/codegen/RelayFileWriter.js
Expand Up @@ -20,8 +20,6 @@ const RelayValidator = require('../core/RelayValidator');

const invariant = require('invariant');
const path = require('path');
const printFlowTypes = require('./flowtype/printFlowTypes');
const writeLegacyFlowFile = require('./writeLegacyFlowFile');
const writeRelayGeneratedFile = require('./writeRelayGeneratedFile');

const {generate} = require('../core/RelayCodeGenerator');
Expand Down Expand Up @@ -200,20 +198,6 @@ class RelayFileWriter implements FileWriterInterface {
// don't add definitions that were part of base context
return;
}
if (
this._config.fragmentsWithLegacyFlowTypes &&
this._config.fragmentsWithLegacyFlowTypes.has(node.name)
) {
const legacyFlowTypes = printFlowTypes(node);
if (legacyFlowTypes) {
writeLegacyFlowFile(
getGeneratedDirectory(node.name),
node.name,
legacyFlowTypes,
this._config.platform,
);
}
}

const flowTypes = RelayFlowGenerator.generate(
node,
Expand Down
258 changes: 0 additions & 258 deletions packages/relay-compiler/codegen/flowtype/RelayFlowParser.js

This file was deleted.

This file was deleted.

0 comments on commit 8cf10b9

Please sign in to comment.