Remove unused vars

Reviewed By: davidaurelio

Differential Revision: D6362298

fbshipit-source-id: 8a79663e4f83d7b15919f2a1a8dd9416900f3203
This commit is contained in:
Christoph Nakazawa 2017-11-18 00:55:33 -08:00 committed by Facebook Github Bot
parent 5fdef3bdb2
commit 2c6aa5c5d8
6 changed files with 1 additions and 10 deletions

View File

@ -18,7 +18,6 @@ jest
const Transformer = require('../'); const Transformer = require('../');
const {any} = jasmine;
const {Readable} = require('stream'); const {Readable} = require('stream');
describe('Transformer', function() { describe('Transformer', function() {

View File

@ -19,8 +19,6 @@ const wrapWorkerFn = require('../wrap-worker-fn');
const {dirname} = require('path'); const {dirname} = require('path');
const {fn} = require('../../test-helpers'); const {fn} = require('../../test-helpers');
const {any} = jasmine;
describe('wrapWorkerFn:', () => { describe('wrapWorkerFn:', () => {
const infile = '/arbitrary/in/file'; const infile = '/arbitrary/in/file';
const outfile = '/arbitrary/in/file'; const outfile = '/arbitrary/in/file';

View File

@ -16,7 +16,6 @@ jest.useRealTimers();
jest.mock('path'); jest.mock('path');
const {join: pathJoin} = require.requireActual('path');
const DependencyGraph = jest.fn(); const DependencyGraph = jest.fn();
jest.setMock('../../node-haste/DependencyGraph', DependencyGraph); jest.setMock('../../node-haste/DependencyGraph', DependencyGraph);
let Module; let Module;

View File

@ -24,9 +24,8 @@ const {
const pathJoin = require('path').join; const pathJoin = require('path').join;
import type Module, {HasteImpl, TransformCode} from '../node-haste/Module'; import type Module, {HasteImpl, TransformCode} from '../node-haste/Module';
import type {MappingsMap, CompactRawMappings} from '../lib/SourceMap'; import type {CompactRawMappings} from '../lib/SourceMap';
import type {PostMinifyProcess} from '../Bundler'; import type {PostMinifyProcess} from '../Bundler';
import type {Options as JSTransformerOptions} from '../JSTransformer/worker';
import type {Reporter} from '../lib/reporting'; import type {Reporter} from '../lib/reporting';
import type { import type {
TransformCache, TransformCache,
@ -36,8 +35,6 @@ import type {GlobalTransformCache} from '../lib/GlobalTransformCache';
import typeof {minify as MinifyCode} from '../JSTransformer/worker'; import typeof {minify as MinifyCode} from '../JSTransformer/worker';
type ContainsTransformerOptions = {+transformer: JSTransformerOptions};
type Options = {| type Options = {|
+assetExts: Array<string>, +assetExts: Array<string>,
+assetRegistryPath: string, +assetRegistryPath: string,

View File

@ -23,7 +23,6 @@ const formatBundlingError = require('../lib/formatBundlingError');
const getMaxWorkers = require('../lib/getMaxWorkers'); const getMaxWorkers = require('../lib/getMaxWorkers');
const getOrderedDependencyPaths = require('../lib/getOrderedDependencyPaths'); const getOrderedDependencyPaths = require('../lib/getOrderedDependencyPaths');
const mime = require('mime-types'); const mime = require('mime-types');
const nullthrows = require('fbjs/lib/nullthrows');
const parsePlatformFilePath = require('../node-haste/lib/parsePlatformFilePath'); const parsePlatformFilePath = require('../node-haste/lib/parsePlatformFilePath');
const path = require('path'); const path = require('path');
const symbolicate = require('./symbolicate'); const symbolicate = require('./symbolicate');

View File

@ -21,7 +21,6 @@ const jsonStableStringify = require('json-stable-stringify');
const {join: joinPath, relative: relativePath, extname} = require('path'); const {join: joinPath, relative: relativePath, extname} = require('path');
import type {RawMapping} from '../Bundler/source-map';
import type { import type {
TransformedCode, TransformedCode,
Options as WorkerOptions, Options as WorkerOptions,