From f1e447d16de017bb5d04bb7d01d66bb39bc85175 Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Tue, 26 Jan 2021 16:47:46 +0100 Subject: [PATCH] clean: remove unused --- src/app/shared/components/modal/modal.component.ts | 5 ++--- .../structure-details/structure-details.component.ts | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/app/shared/components/modal/modal.component.ts b/src/app/shared/components/modal/modal.component.ts index 539f775a7..07f877266 100644 --- a/src/app/shared/components/modal/modal.component.ts +++ b/src/app/shared/components/modal/modal.component.ts @@ -1,4 +1,4 @@ -import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; +import { Component, EventEmitter, Input, Output } from '@angular/core'; import { AppModalType } from './modal-type.enum'; @Component({ @@ -6,7 +6,7 @@ import { AppModalType } from './modal-type.enum'; templateUrl: './modal.component.html', styleUrls: ['./modal.component.scss'], }) -export class ModalComponent implements OnInit { +export class ModalComponent { constructor() {} @Input() public openned: boolean; @@ -14,7 +14,6 @@ export class ModalComponent implements OnInit { @Input() public modalType: AppModalType; @Output() closed = new EventEmitter<boolean>(); public modalTypeEnum = AppModalType; - ngOnInit(): void {} public closeModal(value: boolean): void { this.closed.emit(value); diff --git a/src/app/structure-list/components/structure-details/structure-details.component.ts b/src/app/structure-list/components/structure-details/structure-details.component.ts index 750e813b6..0f7026f17 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.ts +++ b/src/app/structure-list/components/structure-details/structure-details.component.ts @@ -8,7 +8,6 @@ import * as _ from 'lodash'; import { ActivatedRoute, Router } from '@angular/router'; import { PrintService } from '../../../shared/service/print.service'; import { Equipment } from '../../enum/equipment.enum'; -import { typeStructureEnum } from '../../../shared/enum/typeStructure.enum'; import { StructureService } from '../../../services/structure.service'; import { TclService } from '../../../services/tcl.service'; import { TclStopPoint } from '../../../models/tclStopPoint.model'; @@ -125,7 +124,6 @@ export class StructureDetailsComponent implements OnInit { } public deleteStructure(shouldDelete: boolean): void { - console.log('DELETE', shouldDelete); this.toggleDeleteModal(); if (shouldDelete) { this.structureService.delete(this.structure._id).subscribe((res) => { -- GitLab