Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
Summary:
There are some unused imports and variables. This was flagged by running
```
$ js1 lint --only "no-unused-vars: [1, {vars: 'all', args: 'none', ignoreRestSiblings: true}]" ~/fbsource/xplat/js/react-native-github --only "react/jsx-uses-vars" --only "react/jsx-uses-react" --fast
```

Changelog:
Internal

Reviewed By: zackargyle, JoshuaGross

Differential Revision: D17724836

fbshipit-source-id: 2b6a44f55c878d659c9c23f5878ba34f21f8bb69
  • Loading branch information
elicwhite authored and facebook-github-bot committed Oct 3, 2019
1 parent d7864d2 commit 21f1cce
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion Libraries/BugReporting/BugReporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
'use strict';

const RCTDeviceEventEmitter = require('../EventEmitter/RCTDeviceEventEmitter');
const infoLog = require('../Utilities/infoLog');

import type EmitterSubscription from '../vendor/emitter/EmitterSubscription';
import NativeBugReporting from './NativeBugReporting';
Expand Down
2 changes: 0 additions & 2 deletions Libraries/Components/RefreshControl/RefreshControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
const Platform = require('../../Utilities/Platform');
const React = require('react');

const nullthrows = require('nullthrows');

import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
import type {ViewProps} from '../View/ViewPropTypes';
import AndroidSwipeRefreshLayoutNativeComponent from './AndroidSwipeRefreshLayoutNativeComponent';
Expand Down
1 change: 0 additions & 1 deletion Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const requireNativeComponent = require('../../ReactNative/requireNativeComponent
const resolveAssetSource = require('../../Image/resolveAssetSource');
const splitLayoutProps = require('../../StyleSheet/splitLayoutProps');

import type {NativeMethodsMixinType} from '../../Renderer/shims/ReactNativeTypes';
import type {EdgeInsetsProp} from '../../StyleSheet/EdgeInsetsPropType';
import type {PointProp} from '../../StyleSheet/PointPropType';
import type {ViewStyleProp} from '../../StyleSheet/StyleSheet';
Expand Down
1 change: 0 additions & 1 deletion Libraries/Inspector/Inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ class Inspector extends React.Component<

if (this.state.devtoolsAgent) {
// Skip host leafs
const offsetFromLeaf = hierarchy.length - 1 - selection;
this.state.devtoolsAgent.selectNode(touchedViewTag);
}

Expand Down
1 change: 0 additions & 1 deletion Libraries/Lists/SectionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

const Platform = require('../Utilities/Platform');
const React = require('react');
const ScrollView = require('../Components/ScrollView/ScrollView');
const VirtualizedSectionList = require('./VirtualizedSectionList');

import type {ScrollResponderType} from '../Components/ScrollView/ScrollView';
Expand Down
1 change: 0 additions & 1 deletion Libraries/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const View = require('../Components/View/View');

import type {ViewProps} from '../Components/View/ViewPropTypes';
import type {DirectEventHandler} from '../Types/CodegenTypes';
import type {SyntheticEvent} from '../Types/CoreEventTypes';
import type EmitterSubscription from '../vendor/emitter/EmitterSubscription';
import RCTModalHostView from './RCTModalHostViewNativeComponent';
/**
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ import typeof RCTNativeAppEventEmitter from './Libraries/EventEmitter/RCTNativeA
import typeof NativeModules from './Libraries/BatchedBridge/NativeModules';
import typeof Platform from './Libraries/Utilities/Platform';
import typeof processColor from './Libraries/StyleSheet/processColor';
import typeof requireNativeComponent from './Libraries/ReactNative/requireNativeComponent';
import typeof RootTagContext from './Libraries/ReactNative/RootTagContext';
import typeof DeprecatedColorPropType from './Libraries/DeprecatedPropTypes/DeprecatedColorPropType';
import typeof DeprecatedEdgeInsetsPropType from './Libraries/DeprecatedPropTypes/DeprecatedEdgeInsetsPropType';
Expand Down
2 changes: 0 additions & 2 deletions packages/react-native-codegen/src/SchemaValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ function getErrors(schema: SchemaType): $ReadOnlyArray<string> {
return;
}

const component = module.components[componentName];

if (!componentModules.has(componentName)) {
componentModules.set(componentName, []);
}
Expand Down

0 comments on commit 21f1cce

Please sign in to comment.