Kill onRegisterDevice
Summary: `onRegisterDevice` device abstraction was only used by the CrashReporterPlugin, and since with Sandy plugin lifecycles every plugin can do 'on-load' logic, we don't need it anymore. Reviewed By: priteshrnandgaonkar Differential Revision: D27046711 fbshipit-source-id: 16c567c60ed29a50017d525a2b707ee696a99e62
This commit is contained in:
committed by
Facebook GitHub Bot
parent
87c5fab607
commit
6a30899803
@@ -18,7 +18,6 @@ import child_process from 'child_process';
|
||||
const execFile = child_process.execFile;
|
||||
import iosUtil from '../utils/iOSContainerUtility';
|
||||
import IOSDevice from '../devices/IOSDevice';
|
||||
import {registerDeviceCallbackOnPlugins} from '../utils/onRegisterDevice';
|
||||
import {addErrorNotification} from '../reducers/notifications';
|
||||
import {getStaticPath} from '../utils/pathUtils';
|
||||
import {destroyDevice} from '../reducers/connections';
|
||||
@@ -176,12 +175,6 @@ function processDevices(
|
||||
type: 'REGISTER_DEVICE',
|
||||
payload: iOSDevice,
|
||||
});
|
||||
registerDeviceCallbackOnPlugins(
|
||||
store,
|
||||
store.getState().plugins.devicePlugins,
|
||||
store.getState().plugins.clientPlugins,
|
||||
iOSDevice,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user