From: Arundathi Patil Date: Mon, 13 Aug 2018 09:26:23 +0000 (+0530) Subject: aboutus component - removed unused code X-Git-Tag: 1.4.0~38 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F35%2F60235%2F2;p=appc%2Fcdt.git 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 --- 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}`; - } - } - }