From 8b29e50f11da2730a19d21327c22a257d0434c9e Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 24 Jul 2024 18:06:59 +0500 Subject: [PATCH] add_classification - remove dead and deprecated code --- .../ifcopenshell/api/classification/add_classification.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/classification/add_classification.py b/src/ifcopenshell-python/ifcopenshell/api/classification/add_classification.py index f91464a640..af886a0014 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/classification/add_classification.py +++ b/src/ifcopenshell-python/ifcopenshell/api/classification/add_classification.py @@ -116,13 +116,7 @@ class Usecase: self.relate_to_project(result) - return result # See bug #1272 - - try: - result = self.file.add(self.settings["classification"]) - except: - migrator = ifcopenshell.util.schema.Migrator() - result = migrator.migrate(self.settings["classification"], self.file) + return result def relate_to_project(self, classification): self.file.create_entity(