diff options
author | 2018-08-13 14:56:23 +0530 | |
---|---|---|
committer | 2018-08-19 19:32:33 +0000 | |
commit | 97870855d73e5445ed6e76a1abf2f148cd086bf3 (patch) | |
tree | dfc05e7a769599fbe64321ccd2b04ef9467b722e /src/app/about-us/aboutus.component.ts | |
parent | dc9d76e3c80ada490b15a78235dbf5953cb35a4f (diff) |
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 <arundpil@in.ibm.com>
Diffstat (limited to 'src/app/about-us/aboutus.component.ts')
-rw-r--r-- | src/app/about-us/aboutus.component.ts | 14 |
1 files changed, 1 insertions, 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}`; - } - } - } |