From 3a7d770f6d106f337bbb4c7d8af158abf430d76c Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Fri, 3 Jan 2020 01:30:29 +0100 Subject: [PATCH] Remove no longer used angular flash-another component Change-type: patch --- lib/gui/app/components/flash-another/index.ts | 24 ------------------- lib/gui/app/pages/main/main.ts | 4 +--- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 lib/gui/app/components/flash-another/index.ts diff --git a/lib/gui/app/components/flash-another/index.ts b/lib/gui/app/components/flash-another/index.ts deleted file mode 100644 index 06626392..00000000 --- a/lib/gui/app/components/flash-another/index.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2019 balena.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. - */ - -import * as angular from 'angular'; -import { react2angular } from 'react2angular'; -import { FlashAnother } from './flash-another'; - -export const MODULE_NAME = 'Etcher.Components.FlashAnother'; -const FlashAnotherModule = angular.module(MODULE_NAME, []); - -FlashAnotherModule.component('flashAnother', react2angular(FlashAnother)); diff --git a/lib/gui/app/pages/main/main.ts b/lib/gui/app/pages/main/main.ts index 68790e1c..e35a2580 100644 --- a/lib/gui/app/pages/main/main.ts +++ b/lib/gui/app/pages/main/main.ts @@ -28,11 +28,9 @@ import * as angularRouter from 'angular-ui-router'; import { react2angular } from 'react2angular'; import MainPage from './MainPage'; -import { MODULE_NAME as flashAnother } from '../../components/flash-another'; - export const MODULE_NAME = 'Etcher.Pages.Main'; -const Main = angular.module(MODULE_NAME, [angularRouter, flashAnother]); +const Main = angular.module(MODULE_NAME, [angularRouter]); Main.component('mainPage', react2angular(MainPage, [], ['$state']));