aboutus component - removed unused code 35/60235/2
authorArundathi Patil <arundpil@in.ibm.com>
Mon, 13 Aug 2018 09:26:23 +0000 (14:56 +0530)
committerTakamune Cho <tc012c@att.com>
Sun, 19 Aug 2018 19:32:33 +0000 (19:32 +0000)
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>
src/app/about-us/aboutus.component.ts

index fe75e41..5b0fd26 100644 (file)
@@ -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}`;
-        }
-    }
-
 }