From b860a8eaad8c20fda86823abc998ab21f721c970 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 15 Nov 2024 11:06:56 +0500 Subject: [PATCH] edit_qto - remove dead code from edit_pset --- .../ifcopenshell/api/pset/edit_qto.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset/edit_qto.py b/src/ifcopenshell-python/ifcopenshell/api/pset/edit_qto.py index 15816cd625..47c21d6b5e 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset/edit_qto.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset/edit_qto.py @@ -204,13 +204,3 @@ class Usecase: continue return prop_template.TemplateType[2:].lower().capitalize() return "Length" - - # TODO: unused code. - def get_primary_measure_type(self, name: str, previous_value: Optional[Any] = None) -> str: - if not self.qto_template: - return previous_value.is_a() if previous_value else "IfcLabel" - for prop_template in self.qto_template.HasPropertyTemplates: - if prop_template.Name != name: - continue - return prop_template.PrimaryMeasureType or "IfcLabel" - return previous_value.is_a() if previous_value else "IfcLabel"