From d00c3735ec5cee561736eec303db3fc938165fcc Mon Sep 17 00:00:00 2001 From: Geert Hesselink <54070862+Ghesselink@users.noreply.github.com> Date: Mon, 5 May 2025 17:50:43 +0100 Subject: [PATCH] Update src/ifcopenshell-python/ifcopenshell/validate.py Co-authored-by: Thomas Krijnen --- src/ifcopenshell-python/ifcopenshell/validate.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/validate.py b/src/ifcopenshell-python/ifcopenshell/validate.py index df88e4dd24..35acfa9119 100644 --- a/src/ifcopenshell-python/ifcopenshell/validate.py +++ b/src/ifcopenshell-python/ifcopenshell/validate.py @@ -601,9 +601,6 @@ def to_string_header_entity(header_entity): """Recreate IFC header string representation, like FILE_NAME(...)""" # Prefer native .toString() if available (native IfcOpenShell wrapper) - if hasattr(header_entity, 'toString'): - return header_entity.toString() - if hasattr(header_entity, 'toString'): return header_entity.toString() elif hasattr(header_entity, '_fields'):