mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 04:59:52 +00:00
add_classification - remove dead and deprecated code
This commit is contained in:
@@ -116,13 +116,7 @@ class Usecase:
|
|||||||
|
|
||||||
self.relate_to_project(result)
|
self.relate_to_project(result)
|
||||||
|
|
||||||
return result # See bug #1272
|
return result
|
||||||
|
|
||||||
try:
|
|
||||||
result = self.file.add(self.settings["classification"])
|
|
||||||
except:
|
|
||||||
migrator = ifcopenshell.util.schema.Migrator()
|
|
||||||
result = migrator.migrate(self.settings["classification"], self.file)
|
|
||||||
|
|
||||||
def relate_to_project(self, classification):
|
def relate_to_project(self, classification):
|
||||||
self.file.create_entity(
|
self.file.create_entity(
|
||||||
|
|||||||
Reference in New Issue
Block a user