Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

remove dead code

ulferts54ef206de9db
diff --git a/frontend/src/app/components/modals/export-modal/wp-table-export.modal.ts b/frontend/src/app/components/modals/export-modal/wp-table-export.modal.ts
index 1cbc5851f99..c196f94ea99 100644
--- a/frontend/src/app/components/modals/export-modal/wp-table-export.modal.ts
+++ b/frontend/src/app/components/modals/export-modal/wp-table-export.modal.ts
@@ -57,7 +57,6 @@ export class WpTableExportModal extends OpModalComponent implements OnInit, OnDe
public downloadHref:string;
public isLoading = false;
- private subscription?:Subscription;
private finished?:Function;
@ViewChild('downloadLink') downloadLink:ElementRef;
@@ -88,7 +87,6 @@ export class WpTableExportModal extends OpModalComponent implements OnInit, OnDe
ngOnDestroy() {
super.ngOnDestroy();
- this.safeUnsubscribe();
}
private buildExportOptions(results:WorkPackageCollectionResource) {
@@ -184,10 +182,4 @@ export class WpTableExportModal extends OpModalComponent implements OnInit, OnDe
this.service.close();
});
}
-
- private safeUnsubscribe() {
- if (this.subscription) {
- this.subscription.unsubscribe();
- }
- }
}