From 97870855d73e5445ed6e76a1abf2f148cd086bf3 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Mon, 13 Aug 2018 14:56:23 +0530 Subject: aboutus component - removed unused code The NgbModal from ng-bootstrap library was injected in aboutus component, but never used. Hence removing he code that injects the NgbModal into component. The getDismissReason() function in aboutus component is also not used. hence removing that method. Issue-ID: APPC-1149 Change-Id: I41f20cc1d55acac61dd1e8865f4c2d8cb5f0bee9 Signed-off-by: Arundathi Patil --- src/app/about-us/aboutus.component.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/app/about-us/aboutus.component.ts b/src/app/about-us/aboutus.component.ts index fe75e41..5b0fd26 100644 --- a/src/app/about-us/aboutus.component.ts +++ b/src/app/about-us/aboutus.component.ts @@ -28,7 +28,6 @@ import { Subscription } from 'rxjs/Subscription'; import { Observable } from 'rxjs/Observable'; import { NotificationsService } from 'angular2-notifications'; import { saveAs } from 'file-saver'; -import { ModalDismissReasons, NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { DialogService } from 'ng2-bootstrap-modal'; import { ConfirmComponent } from '../shared/confirmModal/confirm.component'; import { appConstants } from '../../constants/app-constants'; @@ -54,7 +53,7 @@ export class AboutUsComponent implements OnInit, OnDestroy { maxLength: 200 }; - constructor(private http: Http, private modalService: NgbModal, private dialogService: DialogService, private notificationsService: NotificationsService) { + constructor(private http: Http, private dialogService: DialogService, private notificationsService: NotificationsService) { } ngOnInit() { @@ -102,15 +101,4 @@ export class AboutUsComponent implements OnInit, OnDestroy { }); saveAs(blob, 'versionLog.txt'); } - - private getDismissReason(reason: any): string { - if (reason === ModalDismissReasons.ESC) { - return 'by pressing ESC'; - } else if (reason === ModalDismissReasons.BACKDROP_CLICK) { - return 'by clicking on a backdrop'; - } else { - return `with: ${reason}`; - } - } - } -- cgit 1.2.3-korg