diff --git a/lib/gui/app/app.js b/lib/gui/app/app.js
index b03f6a18..6421cdc5 100644
--- a/lib/gui/app/app.js
+++ b/lib/gui/app/app.js
@@ -87,7 +87,6 @@ const app = angular.module('Etcher', [
// Components
require('./components/svg-icon'),
- require('./components/warning-modal/warning-modal'),
require('./components/safe-webview'),
require('./components/file-selector'),
diff --git a/lib/gui/app/components/flash-error-modal/flash-error-modal.js b/lib/gui/app/components/flash-error-modal/flash-error-modal.js
deleted file mode 100644
index b0931e99..00000000
--- a/lib/gui/app/components/flash-error-modal/flash-error-modal.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright 2016 resin.io
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict'
-
-/**
- * @module Etcher.Components.FlashErrorModal
- */
-
-const angular = require('angular')
-const MODULE_NAME = 'Etcher.Components.FlashErrorModal'
-const FlashErrorModal = angular.module(MODULE_NAME, [
- require('../warning-modal/warning-modal')
-])
-
-FlashErrorModal.service('FlashErrorModalService', require('./services/flash-error-modal'))
-
-module.exports = MODULE_NAME
diff --git a/lib/gui/app/components/flash-error-modal/services/flash-error-modal.js b/lib/gui/app/components/flash-error-modal/services/flash-error-modal.js
deleted file mode 100644
index 5110ddff..00000000
--- a/lib/gui/app/components/flash-error-modal/services/flash-error-modal.js
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2016 resin.io
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict'
-
-const flashState = require('../../../models/flash-state')
-const selectionState = require('../../../models/selection-state')
-const store = require('../../../models/store')
-const analytics = require('../../../modules/analytics')
-
-module.exports = function (WarningModalService) {
- /**
- * @summary Open the flash error modal
- * @function
- * @public
- *
- * @param {String} message - flash error message
- * @returns {Promise}
- *
- * @example
- * FlashErrorModalService.show('The drive is not large enough!');
- */
- this.show = (message) => {
- return WarningModalService.display({
- confirmationLabel: 'Retry',
- description: message
- }).then((confirmed) => {
- flashState.resetState()
-
- if (confirmed) {
- analytics.logEvent('Restart after failure', {
- applicationSessionUuid: store.getState().toJS().applicationSessionUuid,
- flashingWorkflowUuid: store.getState().toJS().flashingWorkflowUuid
- })
- } else {
- selectionState.clear()
- }
- })
- }
-}
diff --git a/lib/gui/app/components/progress-button/index.js b/lib/gui/app/components/progress-button/index.js
deleted file mode 100644
index 7d47eb53..00000000
--- a/lib/gui/app/components/progress-button/index.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright 2016 resin.io
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict'
-
-/**
- * @module Etcher.Components.ProgressButton
- */
-
-const angular = require('angular')
-const { react2angular } = require('react2angular')
-
-const MODULE_NAME = 'Etcher.Components.ProgressButton'
-const ProgressButton = angular.module(MODULE_NAME, [])
-
-ProgressButton.component(
- 'progressButton',
- react2angular(require('./progress-button.jsx'))
-)
-
-module.exports = MODULE_NAME
diff --git a/lib/gui/app/components/progress-button/progress-button.jsx b/lib/gui/app/components/progress-button/progress-button.jsx
index 2eab3e3b..cae4cf9f 100644
--- a/lib/gui/app/components/progress-button/progress-button.jsx
+++ b/lib/gui/app/components/progress-button/progress-button.jsx
@@ -26,7 +26,7 @@ const {
keyframes
} = require('styled-components')
-const { ProgressBar, Provider } = require('rendition')
+const { ProgressBar } = require('rendition')
const { colors } = require('./../../theme')
const { StepButton, StepSelection } = require('./../../styled-components')
@@ -105,46 +105,40 @@ class ProgressButton extends React.Component {
if (this.props.active) {
if (this.props.striped) {
return (
-