diff --git a/scripts/start-dev-server.js b/scripts/start-dev-server.js index 807d640ff..68500cd41 100644 --- a/scripts/start-dev-server.js +++ b/scripts/start-dev-server.js @@ -26,7 +26,6 @@ function launchElectron({bundleURL, electronURL}) { const args = [ path.join(STATIC_DIR, 'index.js'), '--remote-debugging-port=9222', - '--dynamicPlugins=~/fbsource/xplat/sonar/src/plugins,~/fbsource/xplat/sonar/src/fb/plugins', ]; const proc = child.spawn(electronBinary, args, { diff --git a/src/MenuBar.js b/src/MenuBar.js index e677fe922..02e654cb7 100644 --- a/src/MenuBar.js +++ b/src/MenuBar.js @@ -8,11 +8,6 @@ import type {SonarBasePlugin} from './plugin.js'; import {devicePlugins} from './device-plugins/index.js'; -import { - isProduction, - loadsDynamicPlugins, - toggleDynamicPluginLoading, -} from './utils/dynamicPluginLoading.js'; import plugins from './plugins/index.js'; import electron from 'electron'; @@ -332,15 +327,6 @@ function getTemplate(app: Object, shell: Object): Array { { type: 'separator', }, - { - label: `Restart in ${ - loadsDynamicPlugins() ? 'Production' : 'Development' - } Mode`, - enabled: isProduction(), - click: function() { - toggleDynamicPluginLoading(); - }, - }, { label: 'Quit', accelerator: 'Command+Q', diff --git a/src/chrome/AutoUpdateVersion.js b/src/chrome/AutoUpdateVersion.js index 9f57d8854..a7b008ed5 100644 --- a/src/chrome/AutoUpdateVersion.js +++ b/src/chrome/AutoUpdateVersion.js @@ -7,7 +7,7 @@ import {FlexRow, Text, colors, LoadingIndicator, Glyph, Component} from 'sonar'; import {remote} from 'electron'; -import {isProduction} from '../utils/dynamicPluginLoading'; +import isProduction from '../utils/isProduction.js'; import config from '../fb-stubs/config.js'; const version = remote.app.getVersion(); diff --git a/src/chrome/SonarTitleBar.js b/src/chrome/SonarTitleBar.js index fa4baeac9..7f7e14dd1 100644 --- a/src/chrome/SonarTitleBar.js +++ b/src/chrome/SonarTitleBar.js @@ -10,16 +10,10 @@ import { Button, ButtonGroup, FlexRow, - FlexBox, Component, Spacer, - Glyph, GK, } from 'sonar'; -import { - loadsDynamicPlugins, - dynamicPluginPath, -} from '../utils/dynamicPluginLoading.js'; import {connect} from 'react-redux'; import { toggleBugDialogVisible, @@ -60,10 +54,6 @@ const TitleBar = FlexRow.extends( }, ); -const Icon = FlexBox.extends({ - marginRight: 3, -}); - type Props = {| windowIsFocused: boolean, leftSidebarVisible: boolean, @@ -82,13 +72,6 @@ class SonarTitleBar extends Component { - {loadsDynamicPlugins() && ( - - - - )} {process.platform === 'darwin' ? : null} {config.bugReportButtonVisible && (