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 unused code

as-op4e12b4792c1c
diff --git a/frontend/src/app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component.ts b/frontend/src/app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component.ts
index ffeeadae7ad..c98f6e21d9a 100644
--- a/frontend/src/app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component.ts
+++ b/frontend/src/app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component.ts
@@ -116,19 +116,6 @@ export class BcfExportButtonComponent extends UntilDestroyedMixin implements OnI
}
private handleError(error:HttpErrorResponse) {
- // There was an error but the status code is actually a 200.
- // If that is the case the response's content-type probably does not match
- // the expected type (json).
- // Currently this happens e.g. when exporting Atom which actually is not an export
- // but rather a feed to follow.
- if (error.status === 200 && error.url) {
- window.open(error.url);
- } else {
- this.showError(error);
- }
- }
-
- private showError(error:HttpErrorResponse) {
this.toastService.addError(error.message || this.I18n.t('js.error.internal'));
}
}